GUI-related change involving other components

- Controller handles IndexOutOfBound exn separately
- change how tasks are sorted
Now the table displays timed/deadline tasks first, from earlier tasks to
later tasks, then floating tasks