Sort the length of the content of a vector
Examples
# sort by length of content
x = c("acs","tt","jdssr","h","grab")
sort_length(vec = x) # ascending order of length
#> [1] "h" "tt" "acs" "grab" "jdssr"
sort_length(vec = x, asc = FALSE) # descending order of length
#> [1] "jdssr" "grab" "acs" "tt" "h"