str_sort
Sorts characters in string ascending or descending using localized collation.
str_sort(
str,
[ascending=true]
) -> STRING
Sorts characters in string ascending or descending using localized collation.
Syntaxe
var asc = str_sort("Hello World");
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | String to sort | |
ascending | - | true | If true sort ascending, else descending |