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 < ba > baandbare equivalentComparison functions are transitive:
a < b and b < c => a < cThey also satisfy:
a < b <=> b > aanda = b <=> b = a