apply

.apply sequence:{Sequence<T>} by:{(T) -> R} -> Sequence<T>

Applies the sorting order to a sequence of items.

Return

the sorted sequence

Parameters

sequence

the sequence to sort

by

the function to extract the sorting key from each item