perl -e 'print sort {$a <=> $b} <>' test.txt
In reply to Re^2: Sorting within a file by dmorelli in thread Sorting within a file by Anonymous Monk