then

infix fun then(other: SearchSort): SearchSort

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

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()))