diff --git a/C4/Items.pm b/C4/Items.pm index cca700258d..b81fb0aa17 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -764,7 +764,7 @@ sub GetItemsForInventory { my $max_cnsort = GetClassSort($class_source,undef,$maxlocation); my $select_columns = q{ - SELECT DISTINCT(items.itemnumber), barcode, itemcallnumber, title, author, biblio.biblionumber, biblio.frameworkcode, datelastseen, homebranch, location, notforloan, damaged, itemlost, withdrawn, stocknumber + SELECT DISTINCT(items.itemnumber), barcode, itemcallnumber, title, author, biblio.biblionumber, biblio.frameworkcode, datelastseen, homebranch, location, notforloan, damaged, itemlost, withdrawn, stocknumber, items.cn_sort }; my $select_count = q{SELECT COUNT(DISTINCT(items.itemnumber))}; my $query = q{