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()
}
Content copied to clipboard