mirror of
https://github.com/loot/loot.github.io.git
synced 2026-07-27 14:13:30 -07:00
Define alphabetical ordering for equal contributors.
This commit is contained in:
+6
-2
@@ -64,8 +64,12 @@ function addToList(listElement, person) {
|
||||
}
|
||||
|
||||
function sortContributors(a,b) {
|
||||
return b.contributions - a.contributions;
|
||||
}
|
||||
if (a.contributions != b.contributions) {
|
||||
return b.contributions - a.contributions;
|
||||
} else {
|
||||
return a.name.localeCompare(b.name);
|
||||
}
|
||||
}
|
||||
|
||||
function getContributor(name) {
|
||||
for (var i = 0; i < contributors.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user