How to sort getCollectionChildrenArray by DatePublic
Permalink
Getting a list of subpages and would like to sort them by the value getCollectionDatePublic() returns.
None of the concrete sortBy methods are working on an array.
Thanks
$page = Page::getByID("149"); $sub_page_ids = $page->getCollectionChildrenArray(1);
None of the concrete sortBy methods are working on an array.
Thanks
I guess I can build an array with the following and then sort it, doesn't seem like the best use of the CMS though.
Thanks