Checks if grouping is ordered by time and then outputs the correct order

check_ordered(group, time_data, return = TRUE)

Arguments

group

a c_grouping

time_data

a vector of time

return

T/F return the new order or just run check?