The following example shows how you can sort an XML document by converting it into an XMLListCollection and applying a sort. You can also easily reverse the current sort by calling the SortField object’s reverse() method and refreshing the XMLListCollection object.
Full code after the jump.
Continue reading ‘Sorting XML documents using an XMLListCollection’