Sorting by Number in DVWPs
If you set up a sort in a DVWP that has an aggregate Data Source, you’ll need to use the <xsl:sort> tag. If you want to sort by a list column that is numeric, the tag: <xsl:sort select=”@JobFamilyRank” order=”ascending”/> will sort your data like: 1, 10, 11, 12, 2, 20, 21, 3… That is, SharePoint…