diff --git a/app/Services/SearchApiV2Service.php b/app/Services/SearchApiV2Service.php index 64c8303e7..a6826b77e 100644 --- a/app/Services/SearchApiV2Service.php +++ b/app/Services/SearchApiV2Service.php @@ -131,6 +131,7 @@ class SearchApiV2Service return $q->where('can_search', true) ->orWhereNull('can_search'); }) + ->orderByDesc('cached_count') ->offset($offset) ->limit($limit) ->get()