Sort user list by name not email

(imported from commit cc13d1c65625727a923616e402e4c9fd2b5afbb4)
This commit is contained in:
Leo Franchi 2013-02-13 22:50:56 -05:00
parent 818bf4d6e9
commit ddef0c3b28
1 changed files with 1 additions and 7 deletions

View File

@ -41,13 +41,7 @@ function sort_users(users, user_info) {
} }
// Sort equivalent PM names alphabetically // Sort equivalent PM names alphabetically
if (a < b) { return people_dict[a].full_name.localeCompare(people_dict[b].full_name);
return -1;
} else if (a === b) {
return 0;
} else {
return 1;
}
}); });
return users; return users;