Convenience method for sorting a data frame using the given variables.
sort_df(data, vars=names(data))
data
vars
Hadley Wickham <h.wickham@gmail.com>