Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Order Reverses When Enabling 'Allow drag & drop reordering'


Go to End


2 Posts   1388 Views

Avatar
timwjohn

Community Member, 98 Posts

20 August 2010 at 1:34am

Hi UC/All,

I don't know why, but my ImageDataObjectManager was behaving strangely whereby it would reverse the sort order of my Images when I either enable 'Allow drag & drop reordering' or move the image size slider.

I remedied this by passing 'ORDER BY SortOrder' as the $sourceSort parameter.

I'm sure I've never had to do this before though.

(I'm using the latest SilverStripe version in the 2.4 branch)

Avatar
UncleCheese

Forum Moderator, 4102 Posts

20 August 2010 at 2:52am

Yup. Working on it now.