Copied to clipboard

Flag this post as spam?

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


  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Apr 21, 2009 @ 14:47
    Chris Houston
    0

    Sort order is playing tricks on me, can someone figure it out?

    Hi All,

    One of my clients is a recruitment agency and they have a list of "hot jobs" which is simply defined by adding an integer to a "hotjob" variable and the list is just ordered by this item decending...

    It has been working find for months, but now it is behaving weirdly and I have no idea why!

    You can see a test page on their live site that displays all the hot jobs ( normally it's limited to 20 ) I have made this extra template also output the "Hot Job" sort number, for debugging and you can see that this is coming out in a strange order.

    Please note these items come from a hierarchical structure and hence as they are not in the same folder you cannot use the umbraco sort order.

    http://www.nursing-personnel.co.uk/hot-jobs/hottest.aspx

    The XSLT is:

    [code]




      [/code]

      Cheers,

      Chris

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Apr 21, 2009 @ 14:58
    Peter Dijksterhuis
    100

    Hi Chris,

    it's fairly simple. By default, the sortorder uses text instead of numeric.
    To fix it, use this:



    HTH,
    PeterD

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Apr 21, 2009 @ 15:04
    Chris Houston
    0

    Hi Peter,

    Thanks for the very quick reply, it's now live on both of my clients sites :)

    I should have spotted that one, douh... it's always the simple things that are staring you in the face that are the hardest to spot!

    Cheers,

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft