- Companion:
- object
Value members
Abstract methods
Create a sort specification for an ascending sort on the given field.
Create a sort specification for an ascending sort on the given field.
- Value parameters:
- fieldNames
the field name
- Returns:
the sort specification https://docs.mongodb.com/manual/reference/method/cursor.sort/#std-label-sort-asc-desc
Combine multiple sort specifications. If any field names are repeated, the last one takes precedence.
Combine multiple sort specifications. If any field names are repeated, the last one takes precedence.
- Value parameters:
- anotherSort
the sort specifications
- Returns:
the combined sort specification
Create a sort specification for a descending sort on the given field.
Create a sort specification for a descending sort on the given field.
- Value parameters:
- fieldNames
the field name
- Returns:
the sort specification https://docs.mongodb.com/manual/reference/method/cursor.sort/#std-label-sort-asc-desc
Create a sort specification for the text score meta projection on the given field.
Create a sort specification for the text score meta projection on the given field.
- Value parameters:
- fieldName
the field name
- Returns:
the sort specification https://docs.mongodb.com/manual/reference/method/cursor.sort/#std-label-sort-metadata