Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invisible Unicode character that affects alphabetical sorting

Is there an invisible (Unicode) character that affects the alphabetical sorting of list entries?

The general question of invisible characters has been addressed here before, and here is a list of invisible characters, most of which seem to be blanks of some kind.

I am looking for an invisible character which can be placed e.g. at the beginning or inside a filename, and then makes that file getting sorted alphabetically on top with respect to other filenames.

I should add that the character I'm looking for should be sorted before a normal SPACE character as well, for example when used in a file name that is sorted in places like Sharepoint, Teams and OneDrive in the browser.

like image 403
David.P Avatar asked Aug 30 '25 18:08

David.P


1 Answers

U+0020 SPACE (" ") is invisible and sorts before all visible characters in most orderings. It's been used to order things to the start of lists for decades.

like image 106
Rob Napier Avatar answered Sep 04 '25 17:09

Rob Napier