home *** CD-ROM | disk | FTP | other *** search
- A SORT of RELACEMENT
-
- Les Leist
- 125 S. Reynolds Street #J-117
- Alexandria, VA 22304-3126
-
- This assembly language program is a very good replacement for the AMIGADos
- SORT utility found in c:. It performs in-memory sorts of ASCII text files
- whose records are terminated by the linefeed character (0A hex., 10
- decimal). For those familiar with the new Shell environment, LLSort has its
- Pure bit set and may be made resident.
-
- LLSort is barely twice the size of the AMIGADos sort, yet it is compatible
- with it and has the following major enhancements:
-
- 1. Complete memory management.
-
- 2. Maximum file size of 65,535 records and 254 characters per record.
-
- 3. User specified input and output files, using CLI or Shell.
-
- 4. COLSTART parameter to start sorting on that column, or the
- FIELDS parameter to sort on up to 8 separate defined fields
- in either ascending or descending order.
- Default is sort in ascending order.
-
- 4. Ability to sort with case insensitivity.
- Default is sort in case sensitive order, capital letters first.
-
- 5. Ability to sort with numbers placed after letters.
- Default is sort with numbers placed first.
-
- Usuage:
-
- LLSORT [From] fromfile [To] tofile
- [COLSTART nn
- <or>
- FIELDS sc1/#c1/options sc2-ec2/options .... ]
-
- nn = starting column for COLSTART sorting;
-
- sc1 = starting column for first FIELD,
- #c1 = number of columns for first FIELD,
- sc2 = starting column for second FIELD,
- ec2 = ending column for second FIELD (either /#c or -ec may be
- used with any field)
- options = A for ascending order (Default),
- D for descending order,
- C for case insensitive, and
- N for sorting numbers after letters.
-
- Examples:
-
- LLSORT textfile out
-
- LLSORT ram:textfile prt:out Colstart 7
-
- LLSORT df1:textfile ram:out Fields 1/7/acn 10/4/dcn
-
- Have Fun!
-