Bug fix, task is drawn in correct order!

The depth is now disabled and the draw order work as intended. New tasks
are now inserted in the correct place in a sorted list instead of sort
the whole list.