This function computes a locale-dependent sort key, which is an alternative
character representation of the string that, when ordered in the C locale
(which orders using the underlying bytes directly), will give an equivalent
ordering to the original string. It is useful for enhancing algorithms
that sort only in the C locale (e.g., the
strcmp function in libc)
with the ability to be locale-aware.
a character vector
additional settings for
a named list with ICU Collator's options,
For more information on ICU's Collator and how to tune it up
in stringi, refer to
stri_rank for ranking strings with a single character
vector, i.e., generating relative sort keys.
The result is a character vector with the same length as
contains the sort keys. The output is marked as
Marek Gagolewski and other contributors
Collation - ICU User Guide, https://unicode-org.github.io/icu/userguide/collation/
The official online manual of stringi at https://stringi.gagolewski.com/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.