re orderd tasks to follow order of next task flow