diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 72e515a9c..b76767298 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1330,17 +1330,18 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); } if (Services.locale.getAppLocale) { - var appLocale = Services.locale.getAppLocale(); + var locale = Services.locale.getAppLocale(); } // Fx <=53 else { - var appLocale = Services.locale.getApplicationLocale(); + var locale = Services.locale.getApplicationLocale(); + locale = locale.getCategory('NSILOCALE_COLLATE'); } try { // Extract a valid language tag - appLocale = appLocale.match(/^[a-z]{2}(\-[A-Z]{2})?/)[0]; - var collator = new Intl.Collator(appLocale, { + locale = locale.match(/^[a-z]{2}(\-[A-Z]{2})?/)[0]; + var collator = new Intl.Collator(locale, { ignorePunctuation: true, numeric: true, sensitivity: 'base'