Package-level declarations

Types

Link copied to clipboard

A comparator that sorts alphanumeric strings in a human-friendly way. For example, $120 comes after $30, as opposed to the usual lexicographical order.

Link copied to clipboard

The order in which elements are sorted.

Link copied to clipboard
interface Sorting<T>

A sorting strategy for sequences of elements.

Functions

Link copied to clipboard
fun <T, R : Comparable<R>> Sequence<T>.sortedBy(ordering: Ordering, comparator: <Error class: unknown class><in R>? = null, selector: (T) -> R?): Sequence<T>

Sorts elements by a selector value in the given ordering.