in reply to Re: Sorting within a file
in thread Sorting within a file

Oh, now you've done it, got me started with the golf:

perl -e 'print sort {$a <=> $b} <>' test.txt