Just learned: It's so easy to sort strings that are numbers in proper numerical order with the {stringr} #Rstats 馃摝's `str_sort()` function and numeric = TRUE!!
x <- c("8", "10", "1", "40")
str_sort(x, numeric = TRUE)
[1] "1" "8" "10" "40"
A space for Bonfire maintainers and contributors to communicate