OrderBy Element (Query)
Last modified: April 13, 2010
Applies to: SharePoint Foundation 2010
Determines the sort order for a query. The OrderBy element contains a group of FieldRef elements.
<OrderBy Override = "TRUE" | "FALSE" UseIndexForOrderBy = "TRUE" | "FALSE"> <FieldRef Ascending = "TRUE" | "FALSE" Name = "Text" /> ... </OrderBy>
The order in which the fields appear is the order in which the fields are sorted. The value of the Ascending attribute in the FieldRef element determines whether to sort in ascending order.