# AlphanumericComparator

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.

Wrapped around the `alphanumeric-comparator` library.

## Functions

compare
Link copied to clipboard
open override fun compare(p0: CharSequence?, p1: CharSequence?): Int
reversed
Link copied to clipboard
open fun reversed(): Comparator<CharSequence?>?
thenComparing
Link copied to clipboard
open fun thenComparing(other: Comparator<in CharSequence?>?): Comparator<CharSequence?>?
open fun <U : Comparable<in U?>?> thenComparing(keyExtractor: Function<in CharSequence?, out U?>?): Comparator<CharSequence?>?
open fun <U : Any?> thenComparing(keyExtractor: Function<in CharSequence?, out U?>?, keyComparator: Comparator<in U?>?): Comparator<CharSequence?>?
thenComparingDouble
Link copied to clipboard
open fun thenComparingDouble(keyExtractor: ToDoubleFunction<in CharSequence?>?): Comparator<CharSequence?>?
thenComparingInt
Link copied to clipboard
open fun thenComparingInt(keyExtractor: ToIntFunction<in CharSequence?>?): Comparator<CharSequence?>?
thenComparingLong
Link copied to clipboard
open fun thenComparingLong(keyExtractor: ToLongFunction<in CharSequence?>?): Comparator<CharSequence?>?