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.
I'd like to change the display of the blog holder to be ordered like it is in the cms tree instead of by date.
I see in the page controller, this controls the order:
$order = '"BlogEntry"."Date" ASC';
What would be the syntax to list it in order like it is in the CMS? In other words, I'd like to order it by drag-n-dropping in the CMS.
The default column for sorting is the Sort Field.
$order = '"SiteTree"."Sort" ASC';
I do believe that worked.