I have data in long format, grouped by one variable. I\'m trying to sort/arrange rows by the order of values in a certain column, by group. The thing is, I want to apply thi