Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorchewbears
    • CommentTimeJun 14th 2010
    Two ways.

    Hard way :
    First way you will have to change the code to natsort (

    Easy way:

    If you can rename things to M028 for example. Since it is sorting as a string its ordering it place by place.

    LMK if you need more help on the natsort, if you can't go the easy way.
    • CommentAuthorchewbears
    • CommentTimeJun 15th 2010
    If you have little to no experience in php you may be dead in the water on the natsort ; (

    I do not have a working example to test the code on so I can't test it on my machine, but you might be able to get away with adding the natsort to the field Caption in the sort function. As the $fields variable builds caption as an array. So you could start there. If it doesn't work there you could try to use the natsort on the $fields variable where and when it appears in the sort function, but that is going to change all 4 fields. So you might wanna make a separate field variable for caption like

    $caption and then build on the sort function to just use that variable as well.