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.

  /N
  Enables National Language Support, 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.