Alphabetize feed list

This commit is contained in:
Dan Stillman 2016-07-19 01:50:18 -04:00
parent 7b45b920fc
commit 2857f85656

View File

@ -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,