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

Types of granularity for determining the root of the file system.

Link copied to clipboard
interface Sorting<T>

A sorting strategy for sequences of elements.

Functions

Link copied to clipboard
fun getRootFileSystem(context: Context, granularity: RootGranularity = RootGranularity.PROJECT): FileSystem?

Retrieves the relative path to the root of the file system. The root of the file system is determined by the working directory of the current subdocument.

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.