It is often useful to sort on the basis of a sub-field of each line
of text, which ved_smr cannot do. I've produced a draft library
(or rather revised a simpler version) LIB VED_SORTMR which provides
a lot more options.
ENTER sortmr [ -i | -n ] [-r] [ -c<char> ] [ N ]
A utility for sorting the marked range in the buffer using the N'th
field for sorting, with or without mapping upper into lower case (-i),
with the option to sort a field on numerical value (-n), to sort in
reverse order (-r), and to use any character as field
separator(-c<char>).
The library file is at
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/auto/ved_sortmr.p
the help file at
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/help/ved_sortmr
Of course, you always have the option to pipe the marked range through
the Unix sort utility.
Aaron
|