comparator abstract method

int comparator(
  1. T value1,
  2. T value2
)

Returns a negative number if value1 is less than value2, zero if they are equal, and a positive number if value1 is greater than value2. Almost the same: value1 - value2

Implementation

int comparator(T value1, T value2);