in reply to Re: Sorting within a filein thread Sorting within a file
perl -e 'print sort {$a <=> $b} <>' test.txt