www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d2d5896b0b0cc7d54c4eefbfc4e5334b8283c787
parent 7dd9cee0d40b07ecb09f3d4b8f75d2d048e263c0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 13 Jun 2017 21:30:25 -0400

Sort groups in Libraries to Sync window

Diffstat:
Mchrome/content/zotero/preferences/preferences_sync.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js @@ -333,6 +333,9 @@ Zotero_Preferences.Sync = { addRow(Zotero.getString("pane.collections.libraryAndFeeds"), "L" + Zotero.Libraries.userLibraryID, librariesToSkip.indexOf("L" + Zotero.Libraries.userLibraryID) == -1); + // Sort groups + var collation = Zotero.getLocaleCollation(); + groups.sort((a, b) => collation.compareString(1, a.data.name, b.data.name)); // Add group rows for (let group of groups) { addRow(group.data.name, "G" + group.id, librariesToSkip.indexOf("G" + group.id) == -1);