Skip to content

Commit

Permalink
Correct page order in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotd authored May 6, 2019
1 parent 66e873d commit aa0dcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/classes/PageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PageHelper
public static function getSubPages($pageId)
{
$subPages = [];
$pages = PageModel::findPublishedByPid($pageId);
$pages = PageModel::findPublishedByPid($pageId, ['order' => 'sorting']);
if (!$pages) {
return $subPages;
}
Expand Down

0 comments on commit aa0dcb2

Please sign in to comment.