Index | Examples | Syntax FIND | SORT | MORE | Batch



SORT--Notes

Specifying a source Unless you specify the command or filename parameter, SORT acts as a filter  and takes input from the MS-DOS standard input (usually from the keyboard, from a pipe, or from a file). Using redirection symbols with SORT You can use the pipe (|) or the less-than sign (<) to direct data through the SORT command from command or filename. If you want to display the information one screen at a time or direct the information to a file, you can also specify the MORE command or a filename. You can use the greater-than sign (>) to direct the sorted output to a file. Before using a pipe for redirection, you should set the TEMP environment variable in your AUTOEXEC.BAT file. Collating sequence The SORT program uses the collating-sequence table corresponding to the country code and code-page settings. Characters greater than ASCII code 127 are sorted based on information in the COUNTRY.SYS file or in an alternate file specified by the COUNTRY command in your CONFIG.SYS file. Uppercase vs. lowercase SORT does not distinguish between uppercase and lowercase letters. Limits on file size The SORT command can handle files as large as 64K.
-Top- | Examples | Syntax FIND | SORT | MORE | Batch