LocaleOptions Members
The LocaleOptions type exposes the following members.
Fields
Name | Description | |
---|---|---|
![]() |
CaseFirst |
Whether upper case or lower case should sort first. Possible values are "upper", "lower", or "false" (use the locale's default); the default is "false". This option can be set through an options property or through a Unicode extension key; if both are provided, the options property takes precedence. Implementations are not required to support this property.
|
![]() |
IgnorePunctuation |
Whether punctuation should be ignored. Possible values are true and false; the default is false.
|
![]() |
LocaleMatcher |
The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.
|
![]() |
Numeric |
Whether numeric collation should be used, such that "1" < "2" < "10". Possible values are true and false; the default is false. This option can be set through an options property or through a Unicode extension key; if both are provided, the options property takes precedence. Implementations are not required to support this property.
|
![]() |
Sensitivity |
Which differences in the strings should lead to non-zero result values.
|
![]() |
Usage |
Whether the comparison is for sorting or for searching for matching strings. Possible values are "sort" and "search"; the default is "sort".
|