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
|
// Add feeds
|
||||||
if (this.hideSources.indexOf('feeds') == -1) {
|
if (this.hideSources.indexOf('feeds') == -1) {
|
||||||
var feeds = Zotero.Feeds.getAll();
|
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) {
|
if (feeds.length) {
|
||||||
this._addRowToArray(
|
this._addRowToArray(
|
||||||
newRows,
|
newRows,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user