Skip to content

Commit

Permalink
Added order by published date to entries on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
PSkierniewski committed Feb 27, 2016
1 parent 11c0eb0 commit ead0373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function index(Request $request)
],
[
['isPromoted', 'DESC'],
['isSticky', 'DESC']
['isSticky', 'DESC'],
['publishedAt', 'DESC']
],
$request->get('page', 1),
option('general', 'defaultPageSize', 20)
Expand Down

0 comments on commit ead0373

Please sign in to comment.