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.
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
Hi Chris,
it's fairly simple. By default, the sortorder uses text instead of numeric.
To fix it, use this:
HTH,
PeterD
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
is working on a reply...