home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / SORT / TWOSORTS.LBR / TWOSORTS.DZC / TWOSORTS.DOC
Text File  |  2000-06-30  |  2KB  |  51 lines

  1. These two sort programs complement one-another.
  2.  
  3. MSORT is extremely fast, but is limited to files it
  4. can load into memory, and cannot specify a sort
  5. field.  On most systems it will not be able to sort
  6. a file larger than about 48k.  It will announce any
  7. overflow, and preserve all files, so go ahead and 
  8. try it.
  9.  
  10. SORT is about 4 to 5 time slower than MSORT, but can
  11. sort on a specified field.  It has NO limits on file
  12. size, apart from disk space available.  (You should
  13. have room for at least two copies of the file to be
  14. sorted).  SORT puts its temporary files on the
  15. default (logged in) drive.
  16.  
  17. Both SORT and MSORT can write back to the original
  18. file if desired.  MSORT will give a warning.
  19.  
  20. Both SORT and MSORT can ignore case differences in
  21. letters, by the "-u" switch.  Sorting is based on
  22. the ASCII collation sequence only.  Tabs are just
  23. another character, and may confuse the results if
  24. present.  RETAB program is available to expand or
  25. insert tabs if needed.
  26.  
  27. MSORT gives help when run with no parameters.  SORT
  28. gives help when run with a "?" parameter.  SORT i/o
  29. parameters require the "<" and ">" redirection 
  30. indicators.  MSORT filenames may be separated with
  31. commas or spaces as desired.
  32.  
  33. MSORT can input/output across DU (drive/user) areas.
  34. SORT uses only the logged-in user area.  SORT can
  35. input and output from devices (default console),
  36. using the file names RDR, PUN, LST, CON, while MSORT
  37. can only operate on disk files.  MSORT accepts wild
  38. cards in the input filename, and sorts ONLY the first
  39. one found.  MSORTS default output file name is the
  40. input filename, and a different DU may be specified.
  41.  
  42. Both SORT and MSORT use C.A.R Hoares'  quicksort
  43. algorithm, and thus the sorts are not stable, i.e.
  44. lines that are equal may not appear in the output in
  45. the same order as in the input.
  46.  
  47. SORT.COM and MSORT.COM are protected by CCITCRC
  48. checksums, and should yield a 0 value under CCITCRC.
  49.  
  50.     C.B. Falconer.  (86/2/2)
  51. k│