http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12424 --- Comment #2 from giuseppe.angilella@ct.infn.it --- After some trial and error, I've found out that it was not Dewey.pm which needs be modified, but /usr/share/koha/lib/C4/ClassSortRoutine.pm , where the dimension of the "key" variable is set to 30: it must be increased to 40, to comply with my previous change in the database: return substr($key, 0, 40); Summarizing, my sorting issue was solved by: 1. attaching the year part to the Cutter part by an underscore; this prevents Dewey.pm from treating the year part as the "second numeric part", and padding it with zeroes therefore; 1a. If the same author (author with the same Cutter) has other items, with record-specific Cutters, such as F435wh, these must be re-Cuttered as F435_wh; 2. items.cn_sort must be increased to 40 characters (modify Koha's database as described above); 3. the length of $key must also be increased to 40 (modify ClassSortRoutine.pm as described above). -- You are receiving this mail because: You are watching all bug changes.