Skip to content

Commit

Permalink
Merge pull request #64 from SlovakNationalGallery/GMBUVP-132
Browse files Browse the repository at this point in the history
fix: ordering of artworks listing
  • Loading branch information
rastislav-chynoransky authored Jul 16, 2024
2 parents caf59ce + 753866c commit 1619225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/ArtworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public function index(Request $request)
->presentable()
->filteredBySearchRequest($request)
->with(['authors', 'coverPhotoMedia', 'yearBuilt'])
->orderByDesc('is_promoted', 'created_at')
->orderByDesc('is_promoted')
->orderByDesc('created_at')
->orderBy('id')
->paginate(12);

return view('artworks.index', compact(['artworks', 'categories']));
Expand Down

0 comments on commit 1619225

Please sign in to comment.