I have many folders in my home directory that have names that begin with special characters such as _OLD_500GB_HD or !FolderIWantToSeeAtTheTop, but for some reason these folders are sorted according to their first alphanumeric character rather than the leading special character.
So how can I force the folder to not ignore the special character, or how else can I make the sort view organize certain folders at the top or bottom of the sort? Thanks.
Nautilus follows your locale's collation rules when sorting files by name. The rules for the English locales specify that punctuation, case and accents are less important than what letters occur in the string.
If you want collation to be equivalent to
strcmp()
sort order (i.e. do a simple comparison of the code point values for the characters in the string), you can switch to the legacyC
locale for collation.This can be done by editing
~/.profile
and adding (or modifying) a line like the following:When you next log in, the change should take effect in all programs that were using the locale collation order.