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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

sort dataobjects by date added


Go to End


2 Posts   1033 Views

Avatar
janulka

Community Member, 80 Posts

25 October 2011 at 9:20pm

Hello,
How do I display dataobjects DESC by date added?
Thank you!

Avatar
Willr

Forum Moderator, 5523 Posts

31 October 2011 at 10:44pm

On the data object you can set the $default_sort static.

static $default_sort = "Created DESC";