Ignore punctuation when sorting
This sorts "St. A" before "St B". I don't know if we want this.
This commit is contained in:
parent
979e62714c
commit
d66a6f6680
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue