Returns the comparator for a locale. If a locale is not explicitly specified,
a comparator for the user's locale will be returned. Note that if the browser
does not support locale-sensitive string comparisons, the comparator returned
will be a simple codepoint comparator.
Parameters | opt_locale | string= | | the locale that the comparator is used for.
| opt_options | {caseFirst: (string|undefined), ignorePunctuation: (boolean|undefined), localeMatcher: (string|undefined), numeric: (boolean|undefined), sensitivity: (string|undefined), usage: (string|undefined)}= | | the optional set of options for use with the native
collator.
|
|
---|
Returns | |
---|