SortData
Represents the data required to apply a sorting method to queries.
Parameters
direction
The direction of sorting. -1
for descending, 1
for ascending.
sortField
The property by which to apply sorting. Options depend on the object you're querying.