R/sort.R
sort_pref.Rd
Sort by Prefix
sort_pref(x)
character; strings to sort
character
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020') sort_pref(x) #> [1] "pop" "pop_2020_est" "pop_black_2020" "pop_white_2020"