Constructor SortedSetSortField
SortedSetSortField(String, Boolean)
Creates a sort, possibly in reverse, by the minimum value in the set for the document.
Declaration
public SortedSetSortField(string field, bool reverse)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Name of field to sort by. Must not be null. |
System.Boolean | reverse | True if natural order should be reversed. |
SortedSetSortField(String, Boolean, Selector)
Creates a sort, possibly in reverse, specifying how the sort value from the document's set is selected.
Declaration
public SortedSetSortField(string field, bool reverse, Selector selector)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Name of field to sort by. Must not be null. |
System.Boolean | reverse | True if natural order should be reversed. |
Selector | selector | custom selector for choosing the sort value from the set. NOTE: selectors other than MIN require optional codec support. |