sort

Sorts a file or input for displaying.
   sort [d:][path]file [options]
   command | sort [options]
The file for input is not modified.

Options

  /R
  Sort in reverse order.

  /+n
  Begin sorting at column n in each line of text.  Default=1.

  /A
  Sort by ASCII value, disables sorting by National Language.

  /N
  Enables National Language Support (enabled by default in sort version 1.3+), 
  so that messages will be displayed according to the setting of the LANG environment variable.
  Use the set command to set LANG.

Examples

1. Displays the current directory in alphabetical order:
       dir |sort
2. Sorts a file and writes it to another file:
       sort unordered.txt > ordered.txt

Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.