I've got a Umbraco V3 solution that uses the buildin dropdown datatype for displaying a list of years. Now this has worked fine up until now where they needed to add some more values for 2008 and 2009.
The problem is that values are sorted as a string (regardless of which database type you select).
Thanks - I should propaply have mentioned that the problem really shows when the data is presented in the drop down during data entry. So there's no xslt possible here.
I just might have to do a dropdown variant that fixes this. I was hoping someone else had beat me to it :-)
Sorting of dropdown values
I've got a Umbraco V3 solution that uses the buildin dropdown datatype for displaying a list of years. Now this has worked fine up until now where they needed to add some more values for 2008 and 2009.
The problem is that values are sorted as a string (regardless of which database type you select).
Example - http://screencast.com/t/YTEzZmQ4Z
Is there a way to get around this? Bug fix?
Thanks
Jesper
<xsl:sort select="propertyName" data-type="number"/>
Petr
For dropdown I think you should create new dropdown datatype
Hi Petr,
Thanks - I should propaply have mentioned that the problem really shows when the data is presented in the drop down during data entry. So there's no xslt possible here.
I just might have to do a dropdown variant that fixes this. I was hoping someone else had beat me to it :-)
/Jesper
is working on a reply...