SortCapable

sealed interface SortCapable

Interface for query objects that support sorting capabilities.

This interface provides access to sorting criteria that determine the order in which query results are returned.

Sealed: the queries of this package implement it, a user's class does not. Cases may be added in a minor release, so a when over it keeps an else branch.

Inheritors

Properties

Link copied to clipboard
abstract val sort: List<Sort>

The list of sort criteria to apply to the query results. Each sort criterion specifies a field and direction (ascending/descending). Sorts are applied in the order they appear in the list, at most Sort.MAX_FIELDS of them.