Bug 41910

Summary: List of notice modules in letter.tt are in no particular order
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lucas Gass (lukeg) 2026-02-23 19:33:52 UTC
Based off of a comment from Bug 40255:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40255#c24


The list of notices is in no particular order:

TO RECREATE:
1. Go to Tools > Notices & Slips 
2. Click '+ New notice'
3. See each module, they are not ordered. 

I agree with Katrin, they should be ordered by code.
Comment 1 Katrin Fischer 2026-02-23 19:44:59 UTC
Just to be sure, i had meant automatically so translations are taken into account instead of hardcoded in the template.
Comment 2 Katrin Fischer 2026-02-23 21:09:28 UTC
(In reply to Katrin Fischer from comment #1)
> Just to be sure, i had meant automatically so translations are taken into
> account instead of hardcoded in the template.

We do have letter codes and descriptions. I thought as the sentence was written it could be misunderstood.

The patch I had commented on suggested sorting the list of notice modules by description within the template. This means the sequence of entries would be fixed for every language to the English alphabetic order.

I agree in general that alphabetic sorting makes sense, but it can't be a hardcoded sequence in the template. It would need to allow us to sort by translated description. 

The other option would be to have a "functional" or "logical" sort order that is independent of language.