revert sort done tasks in revers