compareByField<T, F extends Comparable<F> > function
Implementation
Comparator<T> compareByField<T, F extends Comparable<F>>(
F Function(T t) fieldValue,
) =>
compareByFieldNatural(
fieldValue,
comparator: compareTo<F>,
);