Alphabetize feed list
This commit is contained in:
parent
7b45b920fc
commit
2857f85656
|
@ -199,6 +199,13 @@ Zotero.CollectionTreeView.prototype.refresh = Zotero.Promise.coroutine(function*
|
|||
// Add feeds
|
||||
if (this.hideSources.indexOf('feeds') == -1) {
|
||||
var feeds = Zotero.Feeds.getAll();
|
||||
|
||||
// Alphabetize
|
||||
var collation = Zotero.getLocaleCollation();
|
||||
feeds.sort(function(a, b) {
|
||||
return collation.compareString(1, a.name, b.name);
|
||||
});
|
||||
|
||||
if (feeds.length) {
|
||||
this._addRowToArray(
|
||||
newRows,
|
||||
|
|
Loading…
Reference in New Issue
Block a user