Bug 41030

Summary: Copy number sorting incorrect
Product: Koha Reporter: David Roberts <david.roberts>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, gmcharlt
Version: 24.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Roberts 2025-10-15 22:18:24 UTC
If a biblio has several copies which are numbered 1,2,3,4 etc, when sorting the holdings table by copy number it results in the display of 1,10,11,2,20,21 etc. This is on the cgi-bin/koha/catalogue/detail.pl page.
Comment 1 David Cook 2025-10-16 02:54:07 UTC
I have seen this one, and it's a tricky one, because I don't think copy number is strictly a number. It's technically text and could be something like "c. 1" or "c. 2", so lexicographic sorting gets used by default.