Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 08, 2009 @ 09:22
    Jesper Ordrup
    0

    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

  • Petr Snobelt 923 posts 1535 karma points
    Dec 08, 2009 @ 10:49
    Petr Snobelt
    0

    <xsl:sort select="propertyName" data-type="number"/>

    Petr

  • Petr Snobelt 923 posts 1535 karma points
    Dec 08, 2009 @ 10:51
    Petr Snobelt
    0

    For dropdown I think you should create new dropdown datatype

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 08, 2009 @ 12:07
    Jesper Ordrup
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft