array sort(array, flags, language)
Returns a copy of array sorted according to flags.
Flags:
Flag | Description |
---|---|
"r" | Reverse (descending) order |
"lc" | Language sensitive lexicographic (collate) order |
"l" | Lexicographic order, the default |
"li" | Case-insensitive lexicographic order (US-ASCII only) |
"liu" | Case-insensitive lexicographic order (Unicode, preferred) |
"n" | Numerical order |
"u" | Unicode-aware case folding |
null
if empty.