Imperfect sorting of directories and files (on Slovak accented letters)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ThunderBoy
Junior Member
Junior Member
Posts: 20
Joined: 2006-07-12, 07:15 UTC
Location: Slovakia

Imperfect sorting of directories and files (on Slovak accented letters)

Post by *ThunderBoy »

English through translator :?

For some time bothers me that in my coding does not sort directory and file names correctly.
I tried all four methods of sorting but neither sort correctly.
I have tested all the Slovak accented letters in the names of the directories and the problem is only the following letters:
ď (Alt+0239) Ď (Alt+0207) ľ (Alt+0190) Ľ (Alt+0188). In short, accented letters need to be sorted out only by the base letters!
The best sorting settings: Alphabetical, considering accents and Natural sorting, alphabetical and numbers, but it's not ok.
Some of the items are sorted correctly. Download I attach an empty directory to preview or test.
That's how it sorts me in pc (Highlighted in red are incorrect.). Below is sorted correctly.

Arábkovka Thalova (Arabidopsis thaliana)
Benedikt lekársky (Cnicus benedictus)
Cesnak člnkovitý (Allium carinatum)
Cesnak hranatý (Allium angulosum)
Čarodejka škvrnitá (Mimulus guttatus)
Čerkáč peniažtekový (Lysimachia nummularia)
Ďatelina alpínska (Trifolium alpestre)
Ďatelinovec bylinný (Dorycnium herbaceum)
Divozel kukučkovitý (Verbascum lychnitis)
Dub letný (Quercus robur)
Ľadenec rožkatý (Lotus corniculatus)
Ľalia cibuľkonosná (Lilium bulbiferum)
Láskavec bledý (Amaranthus lividus)
Lipkavec mäkký (Galium mollugo)
Ľuľkovec zlomocný (Atropa bella-donna)
Ľuľok žltý (Solanum luteum)
Lykovec jedovatý (Daphne mezereum)
Lýrovka obyčajná (Lapsana communis)
Starček lesný (Senecio sylvaticus)
Suchokvet ročný (Xeranthemum annuum)
Šafran spišský (Crocus discolor)
Šalvia lúčna (Salvia pratensis)
Vŕbovka malokvetá (Epilobium parviflorum)
Zanoväť nízka (Chamaecytisus supinus)
Zlatovlások obyčajný (Crinitina linosyris)
Žerucha zborenisková (Lepidium ruderale)
Žerušničník skalný (Cardaminopsis petrogena)



Arábkovka Thalova (Arabidopsis thaliana)
Benedikt lekársky (Cnicus benedictus)
Cesnak člnkovitý (Allium carinatum)
Cesnak hranatý (Allium angulosum)
Čarodejka škvrnitá (Mimulus guttatus)
Čerkáč peniažtekový (Lysimachia nummularia)
Divozel kukučkovitý (Verbascum lychnitis)
Dub letný (Quercus robur)
Ďatelina alpínska (Trifolium alpestre)
Ďatelinovec bylinný (Dorycnium herbaceum)
Láskavec bledý (Amaranthus lividus)
Lipkavec mäkký (Galium mollugo)
Loboda tatárska (Atriplex tatarica)
Lykovec jedovatý (Daphne mezereum)
Lýrovka obyčajná (Lapsana communis)
Ľadenec rožkatý (Lotus corniculatus)
Ľalia cibuľkonosná (Lilium bulbiferum)
Ľuľkovec zlomocný (Atropa bella-donna)
Ľuľok žltý (Solanum luteum)
Starček lesný (Senecio sylvaticus)
Suchokvet ročný (Xeranthemum annuum)
Šafran spišský (Crocus discolor)
Šalvia lúčna (Salvia pratensis)
Vŕbovka malokvetá (Epilobium parviflorum)
Zanoväť nízka (Chamaecytisus supinus)
Zlatovlások obyčajný (Crinitina linosyris)
Žerucha zborenisková (Lepidium ruderale)
Žerušničník skalný (Cardaminopsis petrogena)
Windows 7 64bit Ultimate SP1. Total Commander 9.21a 32bit
User avatar
ThunderBoy
Junior Member
Junior Member
Posts: 20
Joined: 2006-07-12, 07:15 UTC
Location: Slovakia

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *ThunderBoy »

Maybe it will be a matter of the operating system.
Windows 7 64bit Ultimate SP1. Total Commander 9.21a 32bit
User avatar
ThunderBoy
Junior Member
Junior Member
Posts: 20
Joined: 2006-07-12, 07:15 UTC
Location: Slovakia

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *ThunderBoy »

So I checked it out and it is really a bug in the operating system. TC has nothing to do with it.
It sorts me badly in other programs too. I'm sorry I did not know it before. :oops:
Windows 7 64bit Ultimate SP1. Total Commander 9.21a 32bit
User avatar
Usher
Power Member
Power Member
Posts: 1727
Joined: 2011-03-11, 10:11 UTC

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *Usher »

ThunderBoy wrote: 2018-12-28, 12:38 UTCIn short, accented letters need to be sorted out only by the base letters!
It's lexicographic sort order for many Latin-based languages. It should be available in any Windows version which supports Slovak language, but you must set this language as a system default.
Some languages ignore accents, but in your case sorting is strangely mixed: Ce before Ča, Di after Ďa.

It is even more strange as accented letters following after the base letters is a default Unicode sorting, so it should work OK no matter what language is set.

ThunderBoy wrote: 2018-12-28, 13:33 UTCSo I checked it out and it is really a bug in the operating system.
Maybe you are right, but there is always one but…
MS warns that you should reinstall language pack (MUI) after installing Windows service pack. Now all updates for Windows 7 are cumulative so maybe you should reinstall MUI every month after patch Tuesday, if you use such a Windows version.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ThunderBoy
Junior Member
Junior Member
Posts: 20
Joined: 2006-07-12, 07:15 UTC
Location: Slovakia

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *ThunderBoy »

Thanks. OK, I'll try to play around MUI with it on the test version of the Windows. It will probably be the problem. Then I'll know.
Windows 7 64bit Ultimate SP1. Total Commander 9.21a 32bit
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *umbra »

2ThunderBoy
Are you sure it's incorrect? If I read STN 010181 correctly, "d/t/n/l" and "ď/ť/ň/ľ" are interchangeable during the primary sorting. The same applies to some vowels. The accents on these consonants are used during a secondary sorting. Check this page for examples: https://jazykovaporadna.sme.sk/q/1138/ (in Slovak)
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Imperfect sorting of directories and files (on Slovak accented letters)

Post by *Hacker »

umbra,
Interesting, thank you.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply