Add check for invalid schedule to the schedule view
Add test case for ordering
Sort items correctly