Move sortSchedule out of enumeration of schedule in PPRScheduler

The schedule array should not be sorted while the schedule array is being enumerated!
Merge pull request #28 from davidbernard/iphone_3_fixes

Move sortSchedule out of enumeration of schedule in PPRScheduler