http://www.perlmonks.org?node_id=910670


in reply to Classic Sort Algorithm

i'm truly lazy with these sorts of things...rather than reinvent the wheel at linux/unix/osx/cygwin prompt use command like
sort -n -r -k2,1 your_input_file
the hardest line to type correctly is: stty erase ^H