sortWith<A> method

Iterable<T> sortWith<A>(
  1. A sort(
    1. T instance
    ),
  2. Order<A> order
)

Sort this Iterable based on order of an object of type A extracted from T using sort.

Implementation

Iterable<T> sortWith<A>(A Function(T instance) sort, Order<A> order) =>
    foldRight([], (e, a) => a.insertWith(sort, order, e));