sorted method
- Comparator<
T> compare
Creates a sorted list of the elements of the iterable.
The elements are ordered by the compare
Comparator.
Implementation
List<T> sorted(Comparator<T> compare) => [...this]..sort(compare);
Creates a sorted list of the elements of the iterable.
The elements are ordered by the compare
Comparator.
List<T> sorted(Comparator<T> compare) => [...this]..sort(compare);