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