commit 2857f8565655647c45cb042051aae4bb543ab373 parent 7b45b920fca82fe60296a0409c69a3e664f78eec Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 19 Jul 2016 01:50:18 -0400 Alphabetize feed list Diffstat:
| M | chrome/content/zotero/xpcom/collectionTreeView.js | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -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,