LC_COLLATE and LC_ALL not working

According to this I can fix a problem I’m having by setting LC_COLLATE or LC_ALL to C and it indeed seems to have worked for many. But it seems these settings are just not respected in endeavourOS, I wonder why it isn’t working.

$ ls | LC_ALL=C sort
1
10
100
11
12
2
3

from sort man page:

That isn’t related to the issue you are facing. The referenced fix is for dealing with locales which interpret the - symbol differently.

You just need to use sort -n

ls | sort -n
1 Like

Oh yeah you’re right, I misinterpreted it.

1 Like

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