02-27-2010, 06:19 AM
I have discovered today that authors with names started with polish characters ie.: Ł are sorted after authors with names starting with "Z".
Has someone any solution for this problem ?
02-27-2010, 06:29 AM
It's a common problem and a way most software sorts it - I'd say it's because of the Unicode character codes, where 'z' has a lower code than 'ł' ('z' is 007A, 'ł' is 0142 [both are hex] -- or 122 vs. 322).
02-27-2010, 08:03 AM
Trouble is, there's no one sorting order that works for all languages. You really need to be able to specify a language, and then define sorting rules for that language.
02-27-2010, 08:14 AM
Yup, in Polish it's supposed to be right after 'L', like 'Ą' is after 'A' and 'Ę' after 'E'... I wonder if there are two languages where the same two characters are put in different order, or if there could be one order that fits all languages (after filling in all non-Ascii characters).
02-27-2010, 09:19 AM
or if there could be one order that fits all languages (after filling in all non-Ascii characters).
I guess that could be done by changing the non-ASCII characters to their ASCII counterparts, like changing "Ł" to "L". If we gave them some "priority", we could have it sorted with "Ł" going with other "L"'s, but then, since we've converted it from non-ASCII, move it after the last "L". Or even get all the non-ASCII, sort them, then add them to the sorted list of those ASCII-only after the ASCII character counterpart.
02-27-2010, 12:49 PM
At some point the calibre database will get support for defining book language and then there could conceivably be language dependent sorting, but it will be a while.