Sorting in XSLT (O'Reilly)
Bob DuCharme
shows how
to use xsl:sort on O'Reilly's XML.com site.
"
XSLT's xsl:sort instruction lets you sort a group of similar elements. Attributes for this element let you add details about how you want the sort done -- for example, you can sort using alphabetic or numeric ordering, sort on multiple keys, and reverse the sort order."