Reorder conditions.