naturalComparator<T> function

  1. @Deprecated('Use `naturalCompare` or `naturalComparable<T>` instead')
Comparator<T> naturalComparator<T>()

Returns a natural Comparator for objects of type T.

Implementation

@Deprecated('Use `naturalCompare` or `naturalComparable<T>` instead')
Comparator<T> naturalComparator<T>() => naturalCompare;