Implemented draw order for tasks