Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MMM 4 posts 24 karma points
    Feb 22, 2011 @ 20:24
    MMM
    0

    xsl sort select works for descending but not ascending???

    I am trying to sort a list in alphabetical order.  For some strange reason, the list will sort in descending order and not ascending (at first, I thought I must have misspelled ascending, but I have tried several times now.)  It works perfectly fine descending (going from z-a) but not ascending (a-z)  Is this a glitch in Umbraco?

    <xsl:for-each select="umbraco.library:GetXmlNodeById('1096')/* [@isDoc and string(umbracoNaviHide) != '1']">    
     <xsl:sort select="@nodeName" order="descending" data-type="text" />

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 22, 2011 @ 20:59
    Jan Skovgaard
    0

    Hi MMM

    Hmm, that's odd...what happens if you omit the data-type="text" attribute?

    /Jan

  • 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.

Please Sign in or register to post replies