diff --git a/app/Http/Controllers/ArtworkController.php b/app/Http/Controllers/ArtworkController.php index 6a3610f..82957e9 100644 --- a/app/Http/Controllers/ArtworkController.php +++ b/app/Http/Controllers/ArtworkController.php @@ -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']));