sorted method

*<Null safety>*

List<T> sorted (Comparator<T> compare)

Implementation

List<T> sorted(Comparator<T> compare) => [...this]..sort(compare);