Table of Contents

Class SortBy

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

A builder for specifying a sort order.

public static class SortBy
Inheritance
SortBy
Inherited Members

Properties

Null

Gets a null value with a type of IMongoSortBy.

Methods

Ascending(params string[])

Adds keys to be sorted by in ascending order.

Descending(params string[])

Adds keys to be sorted by in descending order.

MetaTextScore(string)

Adds a key to sort by the computed relevance score when using text search. The name of the key should be the name of the projected relevance score field.