Implemented update_task_ordering.