From 0c95a546f22a1b5e3dd94caffa7743ada6c9dc73 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 17 Jan 2015 17:50:41 +0100 Subject: reproducible: _html_notes: also sort the issues by name, when they affect the same number of packages --- bin/reproducible_html_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 766e6dab..c5e8799f 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -295,7 +295,7 @@ def index_issues(issues): + tab*3 + "Identified issues\n" + tab*2 + "\n" + tab*2 + "\n" \ + tab*3 + "Affected packages\n" + tab*2 + "\n" + tab + "\n" html = (tab*2).join(templ.splitlines(True)) - for issue in sorted(issues, key=lambda x: len(issues_count[x]), reverse=True): + for issue in sorted(issues, key=lambda x: (-len(issues_count[x]), x)): html += tab*3 + '\n' html += tab*4 + '' + issue + '\n' -- cgit v1.2.3-70-g09d2