arrange() dplyr will not arrange multiple columns 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)