Sort the streams sidebar the same way as the subscriptions page.

Closes trac #1050.

(imported from commit 8a6d5e067b7f726071e5797d70132cab689bbb49)
This commit is contained in:
Luke Faraone 2013-03-07 11:37:53 -05:00
parent 413a989058
commit 8f52f8e4a2
1 changed files with 1 additions and 6 deletions

View File

@ -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();