Switch task execution order