XSLT <sort> Element
<xsl:sort> element allows you to sort the output of the <xsl:for-each> element.
Here, we use
<xsl:for-each> to loop through each "tutorial" element, and
<xsl:sort> to sort by the "name" node. We then use the
<xsl:value-of> to extract data from the "name" node.
So, let's see what would happen if we applied the above XSLT document to the following XML document:
This is how the contents would be displayed before applying the
This is how the contents would be displayed after applying the