sorted method
Returns a new list with all elements sorted according to natural sort order.
Implementation
List<E> sorted() {
var list = toList();
list.sort();
return list;
}
Returns a new list with all elements sorted according to natural sort order.
List<E> sorted() {
var list = toList();
list.sort();
return list;
}