Filename order in Mac OS

Apple products and Mac operating systems. Including discussions on Virtual PC for Mac, Parallels Desktop for Mac, all Apple hardware and everything relating to Apple and Mac!
(MacCentre701)

Filename order in Mac OS

Postby Anonymosity » Sat 03 Sep, 2011 4:53 pm

I wanted to use a filename starting character with an ASCII code larger than that for z, to put a file at the end of a file listing and keep it there, so tried to use a tilde, then a pipe symbol when the tilde failed to do it. A filename beginning with those symbols is listed first, not last. Why? Tilde has a code of 7E, and pipe is 7C, while lower case z is 7A. Does Mac OS not list names in ASCII order?
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
Anonymosity
silver member
silver member
 
Posts: 407
Joined: Sat 21 Jun, 2008 2:56 am

Re: Filename order in Mac OS

Postby Don_HH2K » Sun 04 Sep, 2011 4:09 pm

I believe most modern OSes no longer sort based on ASCII scancodes, and instead go in blocks - symbols, numbers, then letters. This is so that when you sort letters, the case doesn't matter - A and a will both sort before B.

You could always try experimenting with non-printing characters as well, such as scan code 255, which would logically come last if it is organized in such a way.
UserAgent: Opera/9.80 (Palm OS; Opera Mini/4.3.24214/25.823; U; en) Presto/2.5.25 Version/10.54
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Re: Filename order in Mac OS

Postby Anonymosity » Mon 05 Sep, 2011 12:53 am

It would appear so, but someone pointed me to an article which stated that certain Greek letter symbols and the apple symbol will sort to the end, so I used the apple symbol. Apparently Mac OS sorts by Unicode rather than ASCII.
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
Anonymosity
silver member
silver member
 
Posts: 407
Joined: Sat 21 Jun, 2008 2:56 am


Return to Mac OS and Apple

Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]
cron