diff --git a/web/src/message_list_view.js b/web/src/message_list_view.js index 13da44548b..dcdae5e91d 100644 --- a/web/src/message_list_view.js +++ b/web/src/message_list_view.js @@ -212,7 +212,7 @@ function get_users_for_recipient_row(message) { }); function compare_by_name(a, b) { - return a.full_name < b.full_name ? -1 : a.full_name > b.full_name ? 1 : 0; + return util.strcmp(a.full_name, b.full_name); } return users.sort(compare_by_name);