Bug 12482: removing the use of the module C4::SQLHelper.pm, it is replaced by DBIx...
[koha_fer] / C4 / ShelfBrowser.pm
index 555ad05..763b406 100644 (file)
@@ -171,7 +171,7 @@ sub GetNearbyItems {
 
     my @prev_items = @{
         $dbh->selectall_arrayref(
-            $prev_query . $query_cond . ' ORDER BY cn_sort DESC, itemnumber LIMIT ?',
+            $prev_query . $query_cond . ' ORDER BY cn_sort DESC, itemnumber DESC LIMIT ?',
             { Slice => {} },
             ( @params, $gap )
         )