commit d66a6f6680d75cf7099757695c3873f962ca4843
parent 979e62714cfe1f431f77fec121f7c014916ccbe1
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 25 Jun 2014 12:15:42 -0400
Ignore punctuation when sorting
This sorts "St. A" before "St B". I don't know if we want this.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {