Sort

data class Sort(val field: String, val direction: Sort.Direction)

Data class representing a sorting criterion for query results.

This class defines how query results should be ordered based on a specific field and sort direction.

Samples

Constructors

Link copied to clipboard
constructor(field: String, direction: Sort.Direction)

Types

Link copied to clipboard

Enumeration of possible sort directions.

Properties

Link copied to clipboard

The direction of sorting (ascending or descending).

Link copied to clipboard

The name of the field to sort by.