Change loop order.