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