FEATURE: display references in descending order

This commit is contained in:
Michal Kváček
2016-10-02 22:14:28 +02:00
parent 5621b5acba
commit 76b226629f
@@ -9,11 +9,10 @@
{!! $page->content !!}
</div>
@if(count($page->subpages()))
<div class="row nochange small-up-2 medium-up-3 large-up-3 xlarge-up-4" data-equalizer>
<?php
$counter = 0;
$subpages = $page->subpages();
$subpages = $page->subpages('contents.created_at', 'DESC');
?>
@foreach($subpages as $reference)
<?php $counter++; ?>
@@ -40,5 +39,4 @@
@endif
@endforeach
</div>
@endif
@endsection