ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Bizarre Extension Loading Order: BackQuote Sorts Between "A" and "B".

Q I tried to get an extension to load last in the initialization or startup sequence, so I put the back quote character, "`" , as the first character in its name. But when I did this, it actually loaded near the beginning. What's up?

A If you view the contents of any folder by name, you'll see that items whose names begin with the back quote appear last (or nearly last) in the list. The Finder calls PACK 6 to sort the list, which uses the international sorting routines; these sorting routines order words beginning with a "`" near the end of the list.

During INIT loading, however, PBHGetFInfo() is called and it, in turn, calls RelString(). RelString() is called with case insensitivity and diacritical sensitivity. Unfortunately, due to a bug that HFS relies on, back quote sorts between "a" and "b". This means that extensions beginning with a "`" load after extensions beginning with an "a" (or an "A") and before those with a "b" (or a "B").

There are no plans to fix this problem in order to maintain compatibility with old HFS volumes (which were created before this bug was discovered and which use this sorting order).

Interestingly, UpperString() converts a "`" into an "a", but leaves all other non-letters unchanged.

If you want to make sure that your extension is loaded last in the initialization process, use the tilde (~) as the first character of its name.

Updated: 09-Feb-96


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.