What I describe here is not about a problem with my Nautilus. (it is the default behavour)

I understand why Nautilus sorts the Name-column (ascending) so that "6 cats" occuring before "10 dogs"... Its collation sequence is treating a group of numeric-digits as a single number-value and not as individual characters.

That's fine... I can see some value in it, but personally I find it to be confusing,

And I have no idea why Nautilus completely ignores many leading non-alpha-numeric characters.. ie.!@$%^_:"- etc. as typed via as standard US keyboard..
By "ignore", I mean "---two camels" sorts to be immediately above "two camels", as if the "---" didn't exist... (strange !?).

How can I change the default collating sequence?...

gconf-editor /apps/nautilus/list_view shows some sort options, but does not offer a choice of collation option....
I hope there is an way to do this (otherwise Windows Explorer is one-up on this issue :( Windows allows you to choose the conventional collation sequence (via the registry)

  • 1
    I agree that ignoring the non-alphanumeric characters is annoying; e.g. I used to abuse them so that my temporary folders were always at the top... ;-) – JanC Nov 2 '10 at 21:41

This answer is a workaround.
I've put this information forward because it seems that Nautilus just can't sort in the manner I prefer / want / need.

PCMan File Manager has a similar look and feel to Nautilus, yet it sorts the detaill view in a "by the column" fashion...

It sorts with most of the "special" characters to the top, and a few to the very bottom.. It is case insensitive, and is very close to what I was looking for (..."approximate ASCII"? followed by the remaining normally-sequenced Unicode Codpoint values/characters)..

It is available in Synaptic Package Manager under the name: pcmanfm

| improve this answer | |

The sorting of Nautilus follows the default collating of the locale. This means you have to override the collating of your locale.

To get the sorting like you described, add the following line to ~/.gnomerc (create if it doesn't exist and mark it executable): export LC_COLLATE=POSIX. One downside is that capital letters will sort ahead of lower case letters.

| improve this answer | |
  • Joris, I want to first mention a mistake on my part. The ALPHA chars were sorting case-insensitive all along (I've ammended the question)... I applied POSIX as you suggested, but numbers and symbols are still sorting according to the "mysterious" heuristics I mentioned... I've rebooted, and even tried ="C" (didn't work)... I found an Arch-Linux forum page on this issue; lots of too-ing and fro-ing, but they couldn't resolve it... Maybe this behaviour is just hard-coded into the source. – Peter.O Nov 3 '10 at 17:40

Another workaround:

in Krusader (version 2.2.0-beta1),

  • go to Settings > Configure Krusader...
  • Panel > View
  • and choose Sort method: Character code.

Files with the same prefix are grouped.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.