.apply sequence:{Sequence<T>} by:{(T) -> R} -> Sequence<T>
Applies the sorting order to a sequence of items.
the sorted sequence
the sequence to sort
the function to extract the sorting key from each item