Method Summary | ||
---|---|---|
function | compare(v1, v2, ignoreCase) | |
Compares two string values according to certain collation rules.
|
||
function | getCollationKey(v, ignoreCase) | |
Transforms the string into a comparable object according to certain collation rules.
|
function compare(v1, v2, ignoreCase)
v1: String
- the first stringv2: String
- the second stringignoreCase: boolean
- whether ignore case when comparing valuesfunction getCollationKey(v, ignoreCase)
v: String
- String value needs to be compared with others.ignoreCase: boolean
- whether ignore case when comparing values