Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3487  / 1 Year ago, tue, december 6, 2022, 11:10:35

I want to name a folder so that it is displayed at top (first place) in Files (file manager) if the folders are sorted alphabetically by name.



With what to prefix the folder name in Ubuntu so that my folder is displayed at the top of the list in Files?


More From » filesystem

 Answers
1

Nautilus sorts file names in this order:




  1. special characters (, ~, !, etc)

  2. numbers

  3. alphabetic characters



Note that sorting by number means that a file named 30.txt will appear before a file named 100.txt. Read more details here.



Special characters mixed with alphabetic characters are treated as purely alphabetic strings and sorted among them (after numbers). However, the . character can be used after the prefix to overcome this issue: a folder/file named €.aaaa is listed before all files starting with numbers, whereas a folder/file named €aaaa is listed afterwards.



In my experience the most straightforward way is to simply use numbers.


[#26932] Wednesday, December 7, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticrew

Total Points: 190
Total Questions: 111
Total Answers: 99

Location: Fiji
Member since Wed, Jul 14, 2021
3 Years ago
;