Skip Navigation

Which character should I use in a Windows/Linux directory name to place it at the top of an alphabetically sorted list?

Currently I'm using #, but it causes issues with certain applications.

Example:

 
    
#Top Folder
Games
Music
New Folder
Pics

  

Currently using mostly Windows, but trying to transition to Linux, so a solution that works for both would be perfect.

Thanks, Lemmy!

16 comments
  • A folder 1

    AA folder 2

    AAA folder 3

    Who cares about readability and logic. My outlook work archives are a mess.

  • Just saying that in Nemo (or whatever the cinnamon file manager is called) you can pin a file/folder to the top through the right click menu, unless I'm remembering wrong. But I haven't used this feature at all so I don't know how well it works for any use case.

  • Generally speaking: If you want folders to be on top, do it in your application. You should not prefix folders with "random characters" to make them listed in a specific place.

    If you really want to, you could use A Foldername because A is the lowest Unicode point character that is a letter (0x41) You could also use @ (0x40). I've seen @Foldername in the wild a few times. I would not use numbers, because numbers are stupid, you also cannot easily change them if you want to have another folder between two already existing ones.

    Some applications might ignore non-letter characters (what is interpreted as a letter, depends on your locale) on sorting, though. So the safest would be A.

16 comments