From 2857f8565655647c45cb042051aae4bb543ab373 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 Jul 2016 01:50:18 -0400 Subject: [PATCH] Alphabetize feed list --- chrome/content/zotero/xpcom/collectionTreeView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index d100d027d..6976e4ade 100644 --- 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,