Adds better sorting to HTML tasks in overview and project view

Sorts by deadline, priority, then name