From d66a6f6680d75cf7099757695c3873f962ca4843 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 25 Jun 2014 12:15:42 -0400 Subject: [PATCH] Ignore punctuation when sorting This sorts "St. A" before "St B". I don't know if we want this. --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 71aebaebd..4925bfe6a 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1485,7 +1485,7 @@ Components.utils.import("resource://gre/modules/Services.jsm"); } var locale = appLocale.getCategory('NSILOCALE_COLLATE'); - var collator = new Intl.Collator(locale); + var collator = new Intl.Collator(locale, { ignorePunctuation: true }); // Until old code is updated, pretend we're returning an nsICollation return this.collation = { compareString: function (_, a, b) {