The XPathExpression class exposes two overloaded versions of the AddSort() method that can be used to sort XML data. This example demonstrates how to supply a custom object that implements the IComparer interface to the AddSort() method so that custom XML sorts on data types such as dates can be performed.
|