this is my code
$gp = $pages->get(1016);
$children = $gp->children;
foreach($children as $child) {
$articles = $child->children;
foreach($articles as $article) {
…
}
}
i want all articles to be sorted by title (asc)
i tried this:
$articles = $child->children('sort=title');
but the sorting happened too early
an this doesn't work also (too early)
foreach($articles->sort('name') as $article)