Fixed sorting problem, and maybe fixed happening now for schedules