XPathExpression.AddSort Method (Object, XmlSortOrder, XmlCaseOrder, String, XmlDataType)

When overridden in a derived class, sorts the nodes selected by the XPath expression according to the supplied parameters.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public abstract void AddSort(
	Object expr,
	XmlSortOrder order,
	XmlCaseOrder caseOrder,
	string lang,
	XmlDataType dataType


Type: System.Object
An object representing the sort key. This can be the string value of the node or an XPathExpression object with a compiled XPath expression.
Type: System.Xml.XPath.XmlSortOrder
An XmlSortOrder value indicating the sort order.
Type: System.Xml.XPath.XmlCaseOrder
An XmlCaseOrder value indicating how to sort uppercase and lowercase letters.
Type: System.String
The language to use for comparison. Uses the CultureInfo class that can be passed to the Compare method for the language types, for example, "us-en" for U.S. English. If an empty string is specified, the system environment is used to determine the CultureInfo.
Type: System.Xml.XPath.XmlDataType
An XmlDataType value indicating the sort order for the data type.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions