Compares two values.
@override int compare(T left, T right) { return left.index.compareTo(right.index); }