SortDescriptor
The sort descriptor used by the orderBy
method.
dir?
"asc" | "desc"
The sort direction. If no direction is set, the descriptor will be skipped during processing.
The available values are:
asc
desc
field
string
The field that is sorted.