SORT-MERGE/XL Programmer's Guide (32650-90884)

116 AppendixD
FORTRAN Program Examples
Example of Using an Altered Sequence
Example of Using an Altered Sequence
The following example sorts the data file below, DATA. The entries in DATA are sorted using
an altered collating sequence that is explicitly specified in the program. The sequence
contains all displayable ASCII characters and alters the order of the alphabetic characters
to AaBbCc .... The output file is called FRUIT
DATA File of fruit names
banana
Apple
Grapes
grapes
Pear
peach
orange