# NOT RUN {
df <- as_tibble(mtcars)
df
arrange_all(df)
# You can supply a function that will be applied before taking the
# ordering of the variables. The variables of the sorted tibble
# keep their original values.
arrange_all(df, desc)
arrange_all(df, funs(desc(.)))
# }
Run the code above in your browser using DataLab