Function 6506h          Get Collate-Sequence Table                   DOS 3.3+

Returns the address of the collate-sequence table for the
specified code page and country code. The table is a character
array of 256 elements; each element specifies the sorting weight
of the corresponding character. (The sorting weight is the value
used to determine whether a character appears before or after
another character in a sorted list.) Sorting weights and character
values are not necessarily the same -- for example, in a given
character set, the sorting weights for the letters A and B might
be 1 and 2 even though their character values are 65 and 66.

Entry AX = 6506h
BX = Code page ID (0FFFFh = current code page)
CX = Size of buffer (min. 5)
DX = Country code (0FFFFh = current country)
ES:DI = Pointer to country info buffer

Return Buffer updated
or
AX = Error code, if CF is set
| 01h Invalid function (CX < 5)
| 02h File not found

──────────────────────────────────────────────────────────────────

Format of country info buffer:
Offset Size Description
00h 1 Info-ID (= 06h)
01h 4 32-bit address of collate-sequence table

The collate-sequence table starts with a 16-bit value that
specifies the length of the table; the remainder of the table
specifies the sorting weight for each character.