Sort translators list in Quick Copy drop-down
This commit is contained in:
parent
d4532f0cdf
commit
8a0081c84e
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ Zotero_Preferences.Export = {
|
||||||
yield Zotero.Styles.init();
|
yield Zotero.Styles.init();
|
||||||
var translation = new Zotero.Translate("export");
|
var translation = new Zotero.Translate("export");
|
||||||
var translators = yield translation.getTranslators();
|
var translators = yield translation.getTranslators();
|
||||||
|
translators.sort((a, b) => {
|
||||||
|
var collation = Zotero.getLocaleCollation();
|
||||||
|
return collation.compareString(1, a.label, b.label);
|
||||||
|
});
|
||||||
this.buildQuickCopyFormatDropDown(
|
this.buildQuickCopyFormatDropDown(
|
||||||
menulist, format.contentType, format, translators
|
menulist, format.contentType, format, translators
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue