sorted schedules in API