Fixed bug where same priority level schedules were going at the bottom of that priority instead of the top.

Add schedule now properly checks if the added schedule should now replace the current schedule.