For comparison functions
A comparison function returns:
a < b
a > b
a
b
Comparison functions are transitive: a < b and b < c => a < c
a < b and b < c => a < c
They also satisfy: a < b <=> b > a and a = b <=> b = a
a < b <=> b > a
a = b <=> b = a
Since 1.6.0
For comparison functions
A comparison function returns:
a < b
a > b
a
andb
are equivalentComparison functions are transitive:
a < b and b < c => a < c
They also satisfy:
a < b <=> b > a
anda = b <=> b = a