Popular JavaScript recipes tagged "file"http://code.activestate.com/recipes/langs/javascript/tags/file/2010-05-30T21:47:36-07:00ActiveState Code RecipesSort file (with unique option) (JavaScript) 2010-05-30T21:47:36-07:00Glenn Jenkinshttp://code.activestate.com/recipes/users/4174057/http://code.activestate.com/recipes/577247-sort-file-with-unique-option/ <p style="color: grey"> JavaScript recipe 577247 by <a href="/recipes/users/4174057/">Glenn Jenkins</a> (<a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/komodo/">komodo</a>, <a href="/recipes/tags/sort/">sort</a>, <a href="/recipes/tags/unique/">unique</a>). </p> <p>This will sort the lines in the current document into alphabetical order. It doesn't apply any special rule (so 5 will come <em>after</em> 42).</p> <p>On running, it asks if you want a unique sort (Cancel for no, Ok for yes), in which case it'll remove duplicate lines.</p>