Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
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.
Attributes
- 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.
Attributes
- 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.
Attributes
- 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.
Attributes
- fieldName
the field name
- Returns:
the sort specification https://docs.mongodb.com/manual/reference/method/cursor.sort/#std-label-sort-metadata