sortLike method

IList<T> sortLike(
  1. Iterable<T> ordering
)

Sorts this list according to the order specified by the ordering iterable. Items which don't appear in ordering will be included in the end, in no particular order.

Note: Not very efficient at the moment (will be improved in the future). Please use for a small number of items.

Implementation

IList<T> sortLike(Iterable<T> ordering) => IList._unsafe(_l.sortLike(ordering), config: config);