SearchSort

Specifies how to sort the results of a search query.

Create instances using the companion factory methods.

For tiered sorting, chain using then or of.

Samples

// tiered sort
val sort = byField("foo") then byId()

// the same sort, but built from a list
val sameSort = SearchSort.of(listOf(byField("foo"), byId()))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
infix fun then(other: SearchSort): SearchSort

Returns a tiered sort consisting of this sort followed by other.

Link copied to clipboard
open override fun toString(): String