AlphanumericComparator

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

Link copied to clipboard
open override fun compare(p0: CharSequence?, p1: CharSequence?): Int
Link copied to clipboard
Link copied to clipboard
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?>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard