It’s very much an OS thing. If you look at a list of files in Windows and then look at the same list in Linux you will see many sorting differences. It is not just special characters but upper and lower case are sorted different differently. TEST.txt and test.TXT are the same file on windows but will be different files on Linux.