compare method

  1. @override
int compare(
  1. Object left,
  2. Object right,
  3. {Comparator comparator}
)
override

Implementation

@override
int compare(Object left, Object right, {Comparator comparator}) {
  for (var sorter in sorters) {
    final result = sorter.compare(left, right, comparator: comparator);
    if (result != 0) {
      return result;
    }
  }
  return 0;
}