Adding sorting of all schedules