order<T extends Comparable<Object>> method

  1. @lazy
  2. @useResult
Order<E, T> order<T extends Comparable<Object>>({
  1. required Select<E, T> by,
})

Returns a Order for ordering this iterable's elements.

final iterable = [('b', 1), ('a', 2), ('c', 3)];
final ordered = foo.order(where: (e) => e.$1).toList();

print(ordered); // [('a', 2), ('b', 1), ('c', 3)]

Implementation

@lazy @useResult Order<E, T> order<T extends Comparable<Object>>({required Select<E, T> by}) => Order._(this, by);