ContentByQueryWebPart.SortBy property

Gets or sets the list field name used to sort the set of list items.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string SortBy { get; set; }

Property value

Type: System.String
The list field name used to sort the set of list items.
Show: