From ddef0c3b285b2b0e5d3f5b3f88103b75087c4fe0 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 13 Feb 2013 22:50:56 -0500 Subject: [PATCH] Sort user list by name not email (imported from commit cc13d1c65625727a923616e402e4c9fd2b5afbb4) --- zephyr/static/js/activity.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/zephyr/static/js/activity.js b/zephyr/static/js/activity.js index 085a4fbb78..0f83e9e42f 100644 --- a/zephyr/static/js/activity.js +++ b/zephyr/static/js/activity.js @@ -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;