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 !!} {!! $page->content !!}
</div> </div>
@if(count($page->subpages()))
<div class="row nochange small-up-2 medium-up-3 large-up-3 xlarge-up-4" data-equalizer> <div class="row nochange small-up-2 medium-up-3 large-up-3 xlarge-up-4" data-equalizer>
<?php <?php
$counter = 0; $counter = 0;
$subpages = $page->subpages(); $subpages = $page->subpages('contents.created_at', 'DESC');
?> ?>
@foreach($subpages as $reference) @foreach($subpages as $reference)
<?php $counter++; ?> <?php $counter++; ?>
@@ -40,5 +39,4 @@
@endif @endif
@endforeach @endforeach
</div> </div>
@endif
@endsection @endsection