# Package-level declarations

## Types

AlphanumericComparator
Link copied to clipboard
object AlphanumericComparator : Comparator<CharSequence>

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

Ordering
Link copied to clipboard
enum Ordering : Enum<Ordering>

The order in which elements are sorted.

Sorting
Link copied to clipboard
interface Sorting<T>

A sorting strategy for sequences of elements.

## Functions

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

Sorts elements by a selector value in the given ordering.