Returns a comparator that applies first, then each of next in turn to break ties.
The result is the first one that is not 0, returned unchanged; later comparators are not
called once one result is not 0. When every result is 0, the result is 0.
Time: O(k) for k comparators, plus at most one call of each per comparison.
Returns a comparator that applies
first, then each ofnextin turn to break ties.The result is the first one that is not
0, returned unchanged; later comparators are not called once one result is not0. When every result is0, the result is0.Time: O(k) for k comparators, plus at most one call of each per comparison.