sortedBy method
Implementation
List<T> sortedBy([Comparator<T>? compare]) {
final buffer = [...this];
buffer.sort(compare);
return buffer;
}
List<T> sortedBy([Comparator<T>? compare]) {
final buffer = [...this];
buffer.sort(compare);
return buffer;
}