DosQueryCollate obtains a collating sequence table (for characters 0x00 through 0xFF) that resides in the country file (the default name is COUNTRY.SYS). It is used by the SORT utility to sort text according to the collating sequence.
The collating table returned corresponds to the system country code or selected country code, and to the process code page or selected code page.