Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi experts,
I used "<xsl:sort select="@sortOrder" order="descending" />" in my xslt, but I got a weird problem.
I have 14 child nodes under "Content", and sort them from 0-13, but it showed in website as
9,8,7,6,5,4,3,2,13,12,11,10,1,0
How to fix this?
Thanks
Hi,
I think maybe its doing a string based sort by default. Try adding the data-type attribute like so:
<xsl:sort select="@sortOrder" order="descending" data-type="number" />
-Tom
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
about the "sort order"
Hi experts,
I used "<xsl:sort select="@sortOrder" order="descending" />" in my xslt, but I got a weird problem.
I have 14 child nodes under "Content", and sort them from 0-13, but it showed in website as
9,8,7,6,5,4,3,2,13,12,11,10,1,0
How to fix this?
Thanks
Hi,
I think maybe its doing a string based sort by default. Try adding the data-type attribute like so:
-Tom
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.