SortDsl

Builds a sort: each call adds one field, in order.

sort {
"state.price".asc()
OrderStateProperties.LAST_EVENT_TIME.desc()
}

Functions

Link copied to clipboard
fun String.asc()
fun QueryField<*>.asc()
Link copied to clipboard
fun String.desc()
fun QueryField<*>.desc()
Link copied to clipboard
fun String.path(block: SortDsl.() -> Unit)

The sorts of block, their fields under this path: "state".path { "price".desc() } sorts state.price.

fun QueryField<*>.path(block: SortDsl.() -> Unit)

The sorts of block, their fields under this field's path.

Link copied to clipboard
fun sort(sort: Sort)