Table of Contents

Class SortDefinitionExtensions

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Extension methods for SortDefinition.

public static class SortDefinitionExtensions
Inheritance
SortDefinitionExtensions
Inherited Members

Methods

Ascending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)

Combines an existing sort with an ascending field.

Ascending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, object>>)

Combines an existing sort with an ascending field.

Descending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)

Combines an existing sort with an descending field.

Descending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, object>>)

Combines an existing sort with an descending field.

MetaTextScore<TDocument>(SortDefinition<TDocument>, string)

Combines an existing sort with a descending sort on the computed relevance score of a text search. The field name should be the name of the projected relevance score field.