Crazy sorting & collating?

Does anyone can explain to me the sorting&collating?

In terminal I see:

ls -al
-rw-r–r-- 1 2 04-13 14:06 a.txt
-rw-r–r-- 1 2 04-13 14:06 ą.txt
-rw-r–r-- 1 2 04-13 14:06 Ą.txt
-rw-r–r-- 1 2 04-13 14:06 c.txt
-rw-r–r-- 1 2 04-14 15:01 C.txt
-rw-r–r-- 1 2 04-14 15:14 Ć.txt
-rw-r–r-- 1 80 04-14 15:12 -.directory
-rw-r–r-- 1 2 04-14 15:17 _d.txt
-rw-r–r-- 1 12502 04-13 18:16 qgis-test.qgz
-rw-r–r-- 1 2 04-14 15:14 Z.txt

What is going on with bolded lines before “q”?

LC_ADDRESS=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_PAPER=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
LC_TELEPHONE=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_CTYPE=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
LC_COLLATE=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LANG=en_US.UTF-8 ← I want to see desktop and apps in English.

additionally - Dolphin displayed in different/another way. (I can’t add screenshot :frowning_face: )
Dolphin shows:

-.directory
_d.txt
a.txt
C.txt
c.txt
qgis-test.qgz
Z.txt
Ą.txt
ą.txt
Ć.txt

I expect sorting as (in terminal and Dolphin):

-.directory
_d.txt
a.txt
ą.txt
Ą.txt
c.txt
C.txt
Ć.txt
qgis-test.qgz
Z.txt

How should I set it?

What you have in ~/.config/plasma-localerc? Your ls output is like LC_COLLATE=pl_PL.UTF-8 but Dolphin sort like LC_COLLATE=C

[Formats]
LANG=en_US.UTF-8
LC_COLLATE=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
useDetailed=true

Krusader works OK. I mean sorting/collating works OK.

All locale settings are ok, Krusader also so this is Dolphin setting. See Dolphin PreferencesGeneralSorting mode and choose Natural – after change you need to restart Dolphin to see effects. See also what you have in ViewSort by

1 Like

Thank you.
The sorting in Dolphin and Krusader are the same now.
There is difference compering to console/terminal but it is OK for me.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.