diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-01-17 17:50:41 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-17 19:59:10 +0100 |
commit | 0c95a546f22a1b5e3dd94caffa7743ada6c9dc73 (patch) | |
tree | 84bbfb0b42d26df932e7a5d98651337cde6a2a1b | |
parent | c6331e906d3f7540e57ea12361f335352825b679 (diff) | |
download | jenkins.debian.net-0c95a546f22a1b5e3dd94caffa7743ada6c9dc73.tar.xz |
reproducible: _html_notes: also sort the issues by name, when they affect the same number of packages
-rwxr-xr-x | bin/reproducible_html_notes.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 + "</th>\n" + tab*2 + "<th>\n" \ + tab*3 + "Affected packages\n" + tab*2 + "</th>\n" + tab + "</tr>\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 + '<tr>\n' html += tab*4 + '<td><a href="' + ISSUES_URI + '/' + issue + \ '_issue.html">' + issue + '</a></td>\n' |