ascending property
A list sorted in ascending order of values returned by this Order's function.
Example
final list = [('b', 1), ('a', 2), ('c', 3)];
list.order(by: (e) => e.$1).ascending; // [('a', 2), ('b', 1), ('c', 3)]
Implementation details
This function assumes computing values to be cheap. Hence, the values are recomputed rather than cached.
Implementation
@useResult List<E> get ascending => _iterable.toList()..sort((a, b) => _function(a).compareTo(_function(b)));