Fix output ordering.