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 items = $('#stream_filters li').get();
|
||||||
var parent = $('#stream_filters');
|
var parent = $('#stream_filters');
|
||||||
items.sort(function(a,b){
|
items.sort(function(a,b){
|
||||||
var keyA = $(a).text();
|
return $(a).data('name').localeCompare($(b).data('name'));
|
||||||
var keyB = $(b).text();
|
|
||||||
|
|
||||||
if (keyA < keyB) return -1;
|
|
||||||
if (keyA > keyB) return 1;
|
|
||||||
return 0;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
parent.empty();
|
parent.empty();
|
||||||
|
|
Loading…
Reference in New Issue