Hardening greater_than and less_than more against mistakes in order of
parameters