Array of sort strings, or undefined to return an empty result.
Map from external field names (e.g., query-string names) to entity object keys.
A SortOptions object keyed by entity property.
SortQueryRepeatError When the same field appears more than once.
SortQueryInvalidFieldError When a field is not found in sortFieldsMap.
SortQueryInvalidOrderError When the order value is not "asc" or "desc".
Parses an array of
"field:order"sort strings into a SortOptions object.Each entry must follow the format
"fieldName"(defaults toasc) or"fieldName:asc"/"fieldName:desc". ThefieldNameis looked up insortFieldsMapand mapped to the corresponding entity key.