dplyr sorrt column according to characte vector code example
Example: sort dataframe dplyr
# sort the dataframe in R using multiple variable with Dplyr
mydata %>% arrange(desc(mpg), gear)
# sort the dataframe in R using multiple variable with Dplyr
mydata %>% arrange(desc(mpg), gear)