Fixed a bug causing floating tasks sorting prob

Now floating tasks are always below timed tasks.