Fix sorting authors with the same number of commits.

This commit is contained in:
Florian Bruhin 2014-12-05 22:36:35 +01:00
parent 6d048f6cd9
commit 0c9a62e289
2 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ Contributors, sorted by the number of commits in descending order:
* rikn00
* Brian Jackson
* Mathias Fussenegger
* Martin Zimmermann
* Peter Vilim
* Martin Zimmermann
// QUTE_AUTHORS_END
Thanks / Similiar projects

View File

@ -317,7 +317,7 @@ def _get_authors():
"""Get a list of authors based on git commit logs."""
commits = subprocess.check_output(['git', 'log', '--format=%aN'])
cnt = collections.Counter(commits.decode('utf-8').splitlines())
return reversed(sorted(cnt, key=lambda k: cnt[k]))
return sorted(cnt, key=lambda k: (cnt[k], k), reverse=True)
def _format_block(filename, what, data):