please dont rip this site
SORT+Sorting Text Data

Instructs DOS to sort text data.


PC-DOS 2.0+

MS-DOS equivalent: SORT (2.0+)




[d:][path] SORT [+n]


[d:][path] Specifies the drive letter and path that

contain the SORT command file.

/R Sorts in reverse ASCII order.

/+n Sorts lines by their nth column instead

of by the character in the first column

of each line. The n is an integer value.



Assuming TEST.TXT consists of a list of names, this command sorts

the file alphabetically and displays the results on the screen.

The less-than sign instructs SORT to take its input from the file

instead of from the keyboard.


Assuming TEST.TXT consists of a list of names as well as phone

numbers that begin on column 20, this command sorts the list by

phone number order.


prints a directory listing in alphabetical order.


You can redirect the output of the SORT command from

standard output (the screen) by using redirection or piping.

Likewise, you can instruct SORT to take its input from other than

the standard input (the keyboard). The maximum size of a file to

be sorted is 63K.

The SORT command sorts characters according to their binary

values, except that lowercase letters are equal to uppercase

letters =a) and characters above 127 are collated according to

the rules of the currently selected country code.


[For related topics, press R]


FIND Command

MORE Command

See also:

file: /Techref/dos/command/sort.htm, 1KB, , updated: 1999/2/20 11:24, local time: 2018/9/25 22:53,

 ©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF=""> dos command sort</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2018 contributors:
o List host: MIT, Site host, Top posters @20180925 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Bob Blick, Isaac M. Bavaresco, Neil, Denny Esterline, Harold Hallikainen, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!