Sort workouts properly