www

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

commit 8a0081c84e6ae64d67fcec09baebf1da10847584
parent d4532f0cdf2bee40cfcec774c1c5b3329179a17d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 22 Jun 2016 07:02:04 -0400

Sort translators list in Quick Copy drop-down

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

diff --git 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 );