I have the following XML fragment.
I have three other <person> nodes with ages 2, 10 and 11. Now, i use XSL
to represent this data in a table format. I want the rows of the table
to be sorted based on the age.
<xsl:for-each select="//group/person" order-by="age">
But, the order by doesnt seem to work properly. It shows the order as
It looks as though it has done a sort by taking the values as strings
and not numbers.
How do i make it sort properly ?