SortDirection enumeration

Defines the sort direction values for ordering search results.

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)

No code example is currently available or this language may not be supported.

Member nameDescription
AscendingSpecifies that the search results are ordered in ascending order.
DescendingSpecifies that the search results are ordered in descending order.

Use the values from the SortDirection enumeration with the Add() method of the SortCollection class, and with the SortDirection() property of the Sort class.

Show: