thenCompare method
Implementation
Comparator<T> thenCompare(Comparator<T> comparator) => (a, b) {
final firstResult = this.call(a, b);
if (firstResult != 0) {
return firstResult;
} else {
return comparator(a, b);
}
};