powered by
str_sort(x, increasing = TRUE, ignore.case = FALSE, USE.NAMES = FALSE)
a < A < b
x
stopifnot( all( str_sort(c("cba", "fed")) == c("abc", "def") ) )
Run the code above in your browser using DataLab