Define alphabetical ordering for equal contributors.

This commit is contained in:
Oliver Hamlet
2015-02-05 00:48:33 +00:00
parent ac45839d7b
commit ea7af0ac27
+6 -2
View File
@@ -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) {