SortDsl

A DSL for constructing a list of Sort objects, allowing for the definition of sorting criteria in a fluent and readable manner. This class extends NestedFieldDsl, enabling the use of nested fields within the sorting context.

Usage:

val sorts = sort {
"name".asc()
"age".desc()
}

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun String.asc()
Link copied to clipboard
fun build(): List<Sort>
Link copied to clipboard
fun String.desc()
Link copied to clipboard
fun nested(nestedField: String)
Link copied to clipboard
Link copied to clipboard
fun sort(sort: Sort)
Link copied to clipboard