The sorting seems to rely on the correct ordering of the columns from the DB/YAML - the current order does not match the displayed order, so if you select to sort by CCODE, we actually sort by callnumber
I don't recreate, can you provide more details please? http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=4 Click "Collection" => http://localhost:8081/api/v1/biblios/4/items?&_page=1&_per_page=20&_match=contains&_order_by=%2Bme.collection_code
I do recreate the problem at the OPAC
Caused by commit 4fa34acc414a1580019df62c28bb39bb6d9f3e85 Bug 14919: Add holds history for patron
Created attachment 188142 [details] [review] Bug 38080: Fix order of columns in opac's holdings tables The order of the columns in the yaml file must match the order of the columns in the template file. Test plan: Confirm that, with bug 30633 applied, you can pick "shelving location" as the default sort order and that the items are correctly sorted by shelving location.
This bug has certainly been opened for the staff. In the OPAC the problem shouldn't be visible before bug 30633.