SortByProperties Element in Microsoft.Search.Query Schema

Last modified: September 15, 2010

Applies to: SharePoint Server 2010

In this article
Child Elements
Parent Elements
Element Information

   <SortByProperty name=managedProperty direction={Ascending|Descending}>

Following is an example of the SortByProperties element in a Microsoft.Search.Query request.

  <SortByProperty name="author" direction="Ascending"></SortByProperty>
  <SortByProperty name="topic" direction="Ascending"></SortByProperty>

If no managed properties are specified for sorting results, by default the results will be sorted by Rank.

Schema name: Microsoft.Search.Query

Applies to: QueryService.Query method (Microsoft.Search.Response.Document), QueryService.QueryEx method (Dataset)

Optional: Yes