Alphabetically sorts characters in a string. Vectorized over x.
Arguments
- x
A string to sort.
Examples
strSort("cba")
#> [1] "abc"
strSort("zyxcCbB105.a")
#> [1] ".015BCabcxyz"
strSort(c("cba", "zyx"))
#> [1] "abc" "xyz"
strSort(c("cba", NA))
#> [1] "abc" NA