DOCUMENTATION
This tool sorts those lines in the current buffer that overlap with a marked
block.
If the block is a column block, then the column is the sort key, otherwise
the whole line is the sort key.
Column sorts are stable, meaning that for lines with the same sort key their
relative positions remain the same.
This allows us to sort on multiple columns, one at a time.
This tool can be called manually from TSE's Macro Execute menu with
sort [option] ...
or from a macro with
ExecMacro("sort [option] ...")
Options:
-i Ignore case. A letter being upper or lower case sorts the same.
-d Descending. Sort on the sort key in reverse order.
-k Kill duplicates. Remove duplicate lines after sorting.
--internal Requires the sort tool to use TSE's internal Sort() command.
--external requires the sort tool to use TSE's external tsort.exe tool.
Options are case-insensitive.
The "--internal" and "--external" options are for testing the sort tool.
They should not be used for regular use.
Example:
sort -i -k Sort the marked lines, ignoring case and removing duplicates.