<p>The sort command does just that, it sorts input.  Input can be a list of files, standard in, or files with standard in. The first example presents this simple file, shopping.txt,  containing a list of items:</p>
<blockquote><p>chicken<br/>
fish<br/>
sour cream<br/>
bread crumbs<br/>
milk<br/>
eggs<br/>
bread<br/>
sinkers<br/>
fishing hooks</p></blockquote>
<p>Issuing the sort command on this file:</p>
<blockquote><p>sort shopping.txt</p></blockquote>
<p>Would present the following output:</p>
<blockquote><p>bread<br/>
bread crumbs<br/>
chicken<br/>
eggs<br/>
fish<br/>
fishing hooks<br/>
milk<br/>
sinkers<br/>
sour cream</p></blockquote>
<p>
For more information including a complete video please see <a href="https://www.linuxintheshell.com/2013/01/29/episode-022-sort/">https://www.linuxintheshell.com/2013/01/29/episode-022-sort/</a>
</p>
