home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol080 / sort.doc < prev    next >
Encoding:
Text File  |  1984-04-29  |  1.6 KB  |  69 lines

  1.                                    Sort 
  2.  
  3. 1.  Purpose.  I modified the NAD-3 set of programs in Volume 11 to suit the
  4. following need.  Messages and letters in the Coast Guard are marked with  a
  5. Standard Subject Identifier Code (SSIC) and also contain a statement of the
  6. subject matter near the top.  These two clues are the best when a  radioman
  7. is  determining  who  to  route  incoming  messages  to  within  a  command
  8. organization.  Records  containing  fields  titled  SUBJect,  SSIC,  Action
  9. addressee, Info addressee are built and updated by a  modification  of  the
  10. NAD-3 program.    That  program  collection  (ALPHABET)  is  also  used  to
  11. alphabetize and print the list in order by subject.   SORT.PAS  (SRTPRT.PAS
  12. is the printer subroutine to facilitate quick modification) sorts the  list
  13. by SSIC and makes a second printout.  These two printouts,  posted  in  the
  14. communications center, are referenced by the duty radioman.  
  15.  
  16. 2.  The program.  This is a direct descendant of  the  ISORTV1  program  in
  17. Volume 4.  Instead of short strings from the console, complete records from
  18. a file are sorted using  an  insertion  sort.    Performance  in  terms  of
  19. throughput is much faster than the algorithm used in  ALPHABET;  not  quite
  20. sure why, but this works well.  The I/O  routines  are  Pascal/Z,  but  the
  21. remainder should be standard.  
  22.  
  23. 3.  Credits to Ray Penley and Craig Rudlin for the original programs.   Rex
  24. A Buddenberg, 1910 Ash Street, North Bend, Or 97459.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.