Defines the sort direction values for ordering search results.
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
'Declaration Public Enumeration SortDirection 'Usage Dim instance As SortDirection
public enum SortDirection
|Ascending||Specifies that the search results are ordered in ascending order.|
|Descending||Specifies that the search results are ordered in descending order.|
|FQLFormula||The sorting is based on a formula rather than a managed property value. The formula specification is specified by using the Property attribute of the Sort class. It is recommended to instead use the sort by formula syntax in Property. This syntax enables you to control the sort direction when you sort by formula. For syntax details, see Sort by Formula.|
Use the values from the SortDirection enumeration with the Add() method of the SortCollection class, the SortDirection() property of the Sort class, and the GetCrawlSummaryByHost() method of the GetCrawlSummaryByHost class.
For FAST Search Server 2010 for SharePoint, this property does not apply when specifying sorting based on rank profile.