Sometimes nodes don't come to you in a convenient order. XSLT's sort instruction element allows you to sort nodes in alphabetical or numerical order. You can also use sort to sort nodes in ascending (a, b, c) or descending (z, y, x) order. This chapter walks you through a brief exploration of sort. You can also read about sorting in Section 10 of the XSLT specification. I'll start, as usual, with a simple example. |