Fix sorting authors with the same number of commits.
This commit is contained in:
parent
6d048f6cd9
commit
0c9a62e289
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user