 ---------------------------------------------------------------------------- 
 S O R T  Filter COMMAND                                                      
 ---------------------------------------------------------------------------- 
                                                                              
 Purpose: Reads data from the standard input device, sorts the data, then     
          writes the data to the standard output device.                      
                                                                              
 Format:  [d:][path]SORT [/R][/+n]                                            
                                                                              
 Remarks: [d:][path] before SORT, to specify the drive and path that contains 
          the SORT command.                                                   
                                                                              
          /R to sort in reverse order.  For example, where "Z" comes before   
          "A".                                                                
                                                                              
          /+n to start sorting at the nth column, where n is an integer      
          value.  If you do not specify n, the default is column 1.  The      
          maximum file that you can sort is 63K in length.                    
                                                                              
          The output filename must be different from the input filename.      
                                                                              
          The SORT command can be used as a filter as well as a command,      
          meaning information such as a file directory listing can be piped   
          through the SORT command to display a sort file directory listing.  
          Examples of this technique are demonstrated below.                  
                                                                              
                                                                              
 Example: The following example pipes the output of the DIR command to the    
          SORT filter.  Then the directory listing is sorted starting with    
          column 14 (column 14 of a directory listing is the 1st character    
          of file size).  The output is sent to the standard output device,   
          which in this case is the screen.                                   
                                                                              
                DIR | SORT /+14        sort dir and display on screen         
                DIR | SORT /+14 > PRN  sort dir and route to the printer      
                                                                              
          SORT /R <UNSORT.TXT > SORTED.TXT  would sort in descending order    
          the file UNSORT.TXT and writes the new file SORTED.TXT on the cur-  
          rent drive and in the current directory.                            
