Reorder uniqueness constraints.