[CentOS] tricky perl question - ascending order

Sun May 23 21:20:31 UTC 2010
Kahlil Hodgson <kahlil.hodgson at dealmax.com.au>

On 05/24/2010 06:39 AM, Jozsi Vadkan wrote:
> The solution [from the FreeBSD mailing list]:
> 
> perl -00 -e 'print map $_->[0], sort { $a->[1] <=> $b->[1] } map [$_,
> tr/\n//], <>' < before.txt > after.txt
> 
> Thank you!!

FYI a lovely piece of magic from 1994:-)

http://en.wikipedia.org/wiki/Schwartzian_transform

Kal