Skip to content

Instantly share code, notes, and snippets.

@joonty
Created October 17, 2013 10:50
Show Gist options
  • Save joonty/7022866 to your computer and use it in GitHub Desktop.
Save joonty/7022866 to your computer and use it in GitHub Desktop.
PHP sorting algorithm
<?php
$input = file("php://stdin");
sort($input);
file_put_contents(end($argv), join($input));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment