mirror of https://github.com/zulip/zulip.git
Sort user list by name not email
(imported from commit cc13d1c65625727a923616e402e4c9fd2b5afbb4)
This commit is contained in:
parent
818bf4d6e9
commit
ddef0c3b28
|
@ -41,13 +41,7 @@ function sort_users(users, user_info) {
|
|||
}
|
||||
|
||||
// Sort equivalent PM names alphabetically
|
||||
if (a < b) {
|
||||
return -1;
|
||||
} else if (a === b) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
return people_dict[a].full_name.localeCompare(people_dict[b].full_name);
|
||||
});
|
||||
|
||||
return users;
|
||||
|
|
Loading…
Reference in New Issue