Correct -->min and -->max when using custom < and > operators