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.

Data Model Questions /

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

Use of $default_sort

Go to End

3 Posts   7183 Views


Community Member, 323 Posts

8 December 2009 at 12:36am


I don’t understand why $default_sort is working in a DataObject I created but not in a ArticlePage (redefinition of Page). In the forum there are other people complaining about that. I know I can use a custom function to sort these pages, But I’m wondering if this is a bug or not…



Community Member, 323 Posts

17 January 2010 at 8:16am

Edited: 17/01/2010 11:53am

I think I’ve found it: when you duplicate a page (because of the interest of repeating some content or structure), the new page has the same Sort value as the original. Changing it in the database or moving around the page in the CMS are solutions.

That’s a bug, isn’t it?


Community Member, 41 Posts

20 April 2010 at 2:22pm

could you share what is your custom sort function? I'm having a problem with default sorting the pages

static $default_sort = "Date DESC";