Comparison function.
Orders pairs of values for sorting and other comparator-based operations. The result is negative if a precedes b, positive if a follows b, and zero if the two values are equivalent and their relative order is irrelevant.
a
b
The type of values to compare
Comparison function.
Orders pairs of values for sorting and other comparator-based operations. The result is negative if
aprecedesb, positive ifafollowsb, and zero if the two values are equivalent and their relative order is irrelevant.