Using the sort has one disadvantage as a non-English speaker (or one whose data can contani special characters). I have to muck around translating the stem variable before and after to ensure that the sort results are correct. For example
DO i2 = 1 TO next_file.0
next_file.i2 = TRANSLATE(next_file.i2, '5B5C5D'x, 'ÅÄÖ')
END
SORT next_file. a
DO i = 12 TO next_file.0
next_file.i2 = TRANSLATE(next_file.i2, 'ÅÄÖ', '5B5C5D'x)
END
It ould be nice if I could pass a string argument that contains the actual sorting order. Something like (?)
SORT next_file. a alphabet='AaBbCc..... ÅåÄäÖö'
Michael |