How to sort getCollectionChildrenArray by DatePublic

Permalink
Getting a list of subpages and would like to sort them by the value getCollectionDatePublic() returns.

$page = Page::getByID("149");
$sub_page_ids = $page->getCollectionChildrenArray(1);


None of the concrete sortBy methods are working on an array.

Thanks

 
HeyPorter replied on at Permalink Reply
If anyone can note a built in Concrete5 function for this, great.

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.

foreach ($sub_page_ids as $id) {
}



Thanks

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.