how to sort the records of a dataframe in r code example Example: sort dataframe r df %>% arrange(column)