From 8a0081c84e6ae64d67fcec09baebf1da10847584 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 22 Jun 2016 07:02:04 -0400 Subject: [PATCH] Sort translators list in Quick Copy drop-down --- chrome/content/zotero/preferences/preferences_export.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js index 515196869..2d7cb6d8b 100644 --- a/chrome/content/zotero/preferences/preferences_export.js +++ b/chrome/content/zotero/preferences/preferences_export.js @@ -49,6 +49,10 @@ Zotero_Preferences.Export = { yield Zotero.Styles.init(); var translation = new Zotero.Translate("export"); var translators = yield translation.getTranslators(); + translators.sort((a, b) => { + var collation = Zotero.getLocaleCollation(); + return collation.compareString(1, a.label, b.label); + }); this.buildQuickCopyFormatDropDown( menulist, format.contentType, format, translators );