sorted method
Implementation
List<T> sorted() {
final buffer = [...this];
buffer.sort((T a, T b) => a.compareTo(b));
return buffer;
}
List<T> sorted() {
final buffer = [...this];
buffer.sort((T a, T b) => a.compareTo(b));
return buffer;
}