# CollatorOptions
Options to be passed into the constructor method.
NOTE
This is an abstract type. Any object of this structure can be used where this type is used.
# Properties
# caseFirst
Indicates if upper case or lower case characters should sort first.
Can be set to one of the following:
'upper'
Upper case characters are sorted before lower case characters.'lower'
Lower case characters are sorted before upper case characters.'false'
Use the locale's default case handling.
This option is ignored on Android.
Default: false
# ignorePunctuation
Indicates if punctuation characters should be ignored during the compare.
This option is ignored on Android.
Default: false
# localeMatcher
The locale matching algorithm to use.
Can be set to 'lookup'
or 'best fit'
.
This option is ignored on Android.
Default: best fit
# numeric
Indicates if numbers in string should be compared as integers.
When set true
, strings containing numbers will be sorted as '1' < '2' < '10'
by their numeric
value instead of by their character codes.
This option is ignored on Android.
Default: false
# sensitivity
Indicates how characters should be compared.
Can be set to one of the following:
'base'
Strings that differ in base letters are unequal. For examplea !== b
,a === á
,a === A
'accent'
Strings that differ in base letters and accents are unequal. For examplea !== b
,a !== á
,a === A
'case'
Strings that differ in base letters or casing are unequal. For examplea !== b
,a === á
,a !== A
'variant'
Strings that differ in base letters, accents, or casing are unequal. For examplea !== b
,a !== á
,a !== A
Default: variant
# usage
Indicates if the comparison is for sorting or searching when matching strings.
Can be set to 'sort'
or 'search'
.
This option is ignored on Android.
Default: sort