Ignore punctuation when sorting

This sorts "St. A" before "St B". I don't know if we want this.
This commit is contained in:
Dan Stillman 2014-06-25 12:15:42 -04:00
parent 979e62714c
commit d66a6f6680

View file

@ -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) {