Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_settings: Sort subscriber list by name always.
Sahil Batra116a0f6f9d6f
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex 284cdcc2dbd..40c8a73bc3f 100644--- a/static/js/stream_edit.js+++ b/static/js/stream_edit.js@@ -50,13 +50,6 @@ function setup_subscriptions_stream_hash(sub) {browser_history.update(hash);}-function compare_by_email(a, b) {- if (a.delivery_email && b.delivery_email) {- return util.strcmp(a.delivery_email, b.delivery_email);- }- return util.strcmp(a.email, b.email);-}-function compare_by_name(a, b) {return util.strcmp(a.full_name, b.full_name);}@@ -362,12 +355,7 @@ export function sort_but_pin_current_user_on_top(users) {}const my_user = people.get_by_email(people.my_current_email());- let compare_function;- if (settings_data.show_email()) {- compare_function = compare_by_email;- } else {- compare_function = compare_by_name;- }+ const compare_function = compare_by_name;if (users.includes(my_user)) {users.splice(users.indexOf(my_user), 1);users.sort(compare_function);