reverse the ordering for tasks