diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 33b6fc14d1..828306bb5a 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -258,7 +258,7 @@ sub shelfpage { if ( $sortfield eq 'year' ) { $yearsort = 'year'; } - $sortfield = $query->param('sort') || $sortfield || 'title'; ## Passed in sorting overrides default sorting + $sortfield = $query->param('sort') || $sortfield; ## Passed in sorting overrides default sorting my $direction = $query->param('direction') || 'asc'; $template->param( sort => $sortfield,