sort<T> function
Implementation
Iterable<T> sort<T>(Iterable<T> list, Comparator<T> comparator) {
final copy = [...list];
copy.sort(comparator);
return copy;
}
Iterable<T> sort<T>(Iterable<T> list, Comparator<T> comparator) {
final copy = [...list];
copy.sort(comparator);
return copy;
}