Explanation of the SORT command. It is EXTERNAL. This command will read data, sort that data and then write it on the monitor, the printer or any other device. Example: You have a file with the name Names.txt and you would like to have these names sorted in alphabetical order type the following: sort < c:names.txt > c:names1.txt