A comparator.
It should return a positive number if x > y, a negative number if x < y, or 0 otherwise.
x > y
x < y
The default implementation is compare.
type of the item
left element
right element
A comparator.
It should return a positive number if
x > y, a negative number ifx < y, or 0 otherwise.The default implementation is compare.