Sort tables

You can use a sort that differs from the default sort method. To perform this type of sort, you can use a sort table to specify the weight of characters.

The file with the sort table has the default name:

$BSE/lib/nlsinf/sort.tab

To make your own sort table, you can fill the SORT_TABLE environment variable with the name of your own sorting file. A sort table has two columns. The first column contains the character, while the second column contains the weight of that character.

For example, to sort the B before the A, create a sort table with the following contents:

\65 \66 or A B
\66 \65 B A

You can use escape and control codes, such as \012, \e, ^A. For more information, refer to Input and output conversion table.