diff --git a/app/Http/Livewire/Library/SearchByTagComponent.php b/app/Http/Livewire/Library/SearchByTagComponent.php index 6fcb55c5..2bdab5d8 100644 --- a/app/Http/Livewire/Library/SearchByTagComponent.php +++ b/app/Http/Livewire/Library/SearchByTagComponent.php @@ -31,6 +31,7 @@ class SearchByTagComponent extends Component ]) ->where('type', 'library_item') ->whereHas('libraryItems.libraries', fn($query) => $query->where('is_public', $shouldBePublic)) + ->ordered() ->get(), ]); }