mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
->ordered()
This commit is contained in:
@@ -31,7 +31,8 @@ class SearchByTagComponent extends Component
|
||||
])
|
||||
->where('type', 'library_item')
|
||||
->whereHas('libraryItems.libraries', fn($query) => $query->where('is_public', $shouldBePublic))
|
||||
->ordered()
|
||||
->orderByDesc('library_items_count')
|
||||
->orderBy('tags.id')
|
||||
->get(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user