Move sortSchedule out of enumeration of schedule in PPRScheduler

The schedule array should not be sorted while the schedule array is being enumerated!