add sort by name to schedules_all query