sorted workouts in order according to day and updated index and controller