Collator::getSortKey
collator_get_sort_key
Get sorting key for a string
&reftitle.description;
&style.oop;
public stringfalseCollator::getSortKey
stringstring
&style.procedural;
stringfalsecollator_get_sort_key
Collatorobject
stringstring
Return collation key for a string.
Collation keys can be compared directly instead of strings, though are implementation
specific and may change between ICU library versions. Sort keys are generally only
useful in databases or other circumstances where function calls are extremely expensive.
&reftitle.parameters;
object
Collator object.
string
The string to produce the key from.
&reftitle.returnvalues;
Returns the collation key for the string, &return.falseforfailure;.
&return.falseproblem;
&reftitle.examples;
collator_get_sort_keyexample
]]>
&example.outputs.similar;
3832404046010901dc08
&reftitle.seealso;
collator_sort
collator_sort_with_sort_keys