 | IFulltextQueryTDocumentOrderByTKey Method |
Sort the results of this query by the given key in ascending order.
Namespace:
SphinxConnector.FluentApi
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
SyntaxIFulltextQuery<TDocument> OrderBy<TKey>(
Expression<Func<TDocument, TKey>> keySelector
)
Function OrderBy(Of TKey) (
keySelector As Expression(Of Func(Of TDocument, TKey))
) As IFulltextQuery(Of TDocument)
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTDocument, TKey
A function to extract the key from a document.
Type Parameters
- TKey
- The type of the key returned by the function that is represented by keySelector.
Return Value
Type:
IFulltextQueryTDocumentThe current instance.
Exceptions
See Also