Using Custom Fields for Ordering Items in Container Widget

Topics: Core, Customizing Orchard, Troubleshooting
Apr 2, 2012 at 9:24 AM
Edited Apr 2, 2012 at 9:26 AM

Hi,

I'm having a problem with my container widget on Orchard 1.3 because the items in my list are not ordering properly. Using the Custom Fields on my Containable Items, I assigned numeric values on Custom One and set my Container Widget to order items by Custom One. When I check my container widget the item assigned to be number ten comes right after number one (1, 10, 2, 3, 4...) is this a bug in Orchard 1.3 Container Widget?

Thanks

Coordinator
Apr 3, 2012 at 2:22 AM

You should be using Projector instead. Lists are pretty much deprecated since 1.4 came out.

But in any case, those fields are not numeric, so sure, 10 comes before 2. You'd have to use 01, 02, 03, etc. if you wanted this to work.

Apr 3, 2012 at 4:07 AM

I see, thank you sir.