KeywordQuery.EnableSorting property
A Boolean value that indicates whether the search results should be sorted.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Property EnableSorting As Boolean
Get
Set
'Usage
Dim instance As KeywordQuery
Dim value As Boolean
value = instance.EnableSorting
instance.EnableSorting = value
public bool EnableSorting { get; set; }
Property value
Type: System.Boolean
Remarks
By default, the search results are sorted by rank. To learn more about modifying the way search results are sorted, see Sorting search results in SharePoint 2013.