Change the min and max constraint to work with ordered.