Bug 41047

Summary: Current library and home library sort by code instead of description
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CatalogingAssignee: Jonathan Druart <jonathan.druart>
Status: Pushed to main --- QA Contact: Lucas Gass (lukeg) <lucas>
Severity: normal    
Priority: P5 - low CC: anneli.osterman, blawlor, chughesman, jonathan.druart, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This patch fixes a problem where holdings were not sorting correctly by the branchname. With this patch the 'Current library' and 'Home library' columns now sort correctly on the description/library name instead of on the branchcode.
Version(s) released in:
26.05.00
Circulation function:
Attachments: Bug 41047: (follow-up) Fix errors in letter.tt
Bug 41047: Sort libraries by description instead of code
Bug 41047: Sort libraries by description instead of code
Bug 41047: Sort libraries by description instead of code

Description Lucas Gass (lukeg) 2025-10-17 16:25:00 UTC
To recreate: 

1. Find or create a record with items from multiple home/holding libraries. 
2. Attempt to sort by either Current library and Home library
3. Notice that they sort by code instead of description.
Comment 1 Lucas Gass (lukeg) 2025-10-20 20:52:07 UTC
Created attachment 188175 [details] [review]
Bug 41047: (follow-up) Fix errors in letter.tt
Comment 2 Jonathan Druart 2026-01-06 09:10:33 UTC
Created attachment 190918 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.
Comment 3 Jonathan Druart 2026-01-06 09:10:40 UTC
This seems to work correctly in my test and I have not found regressions on the other DT's features. Can you have a try please?
Comment 4 Owen Leonard 2026-01-06 12:20:31 UTC
Created attachment 190926 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 5 Lucas Gass (lukeg) 2026-01-20 16:14:42 UTC
Created attachment 191714 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 6 Lucas Gass (lukeg) 2026-01-22 16:28:01 UTC
Nice work everyone!

Pushed to main for 26.05