NEST by Elastic and contributors

<PackageReference Include="NEST" Version="6.2.0" />

.NET API 4,598,784 bytes

 SortDescriptorBase<TDescriptor, TInterface, T>

public abstract class SortDescriptorBase<TDescriptor, TInterface, T> : DescriptorBase<TDescriptor, TInterface>, ISort where TDescriptor : SortDescriptorBase<TDescriptor, TInterface, T>, TInterface, ISort where TInterface : ISort
protected abstract Field SortKey { get; }

The field on which to sort

protected SortDescriptorBase()

public virtual TDescriptor Ascending()

Sorts by ascending sort order

public virtual TDescriptor Descending()

Sorts by descending sort order

public virtual TDescriptor Missing(object value)

Specifies how documents which are missing the sort field should be treated.

public virtual TDescriptor MissingFirst()

Specifies that documents which are missing the sort field should be ordered first

public virtual TDescriptor MissingLast()

Specifies that documents which are missing the sort field should be ordered last

public virtual TDescriptor Mode(SortMode? mode)

Controls what collection value is picked for sorting a document when the field is a collection

public virtual TDescriptor Nested(Func<NestedSortDescriptor<T>, INestedSort> selector)

Specifies the path and filter to apply when sorting on a nested field

public virtual TDescriptor NestedFilter(Func<QueryContainerDescriptor<T>, QueryContainer> filterSelector)

Specifies the filter to apply when sorting on a nested field

public virtual TDescriptor NestedPath(Field path)

Specifies the path to apply when sorting on a nested field

public virtual TDescriptor NestedPath(Expression<Func<T, object>> objectPath)

Specifies the path to apply when sorting on a nested field

public virtual TDescriptor Order(SortOrder? order)

Controls the order of sorting