mirror of https://github.com/zulip/zulip.git
Sort the streams sidebar the same way as the subscriptions page.
Closes trac #1050. (imported from commit 8a6d5e067b7f726071e5797d70132cab689bbb49)
This commit is contained in:
parent
413a989058
commit
8f52f8e4a2
|
@ -907,12 +907,7 @@ function sort_narrow_list() {
|
|||
var items = $('#stream_filters li').get();
|
||||
var parent = $('#stream_filters');
|
||||
items.sort(function(a,b){
|
||||
var keyA = $(a).text();
|
||||
var keyB = $(b).text();
|
||||
|
||||
if (keyA < keyB) return -1;
|
||||
if (keyA > keyB) return 1;
|
||||
return 0;
|
||||
return $(a).data('name').localeCompare($(b).data('name'));
|
||||
});
|
||||
|
||||
parent.empty();
|
||||
|
|
Loading…
Reference in New Issue