print "@_\n";
4109 4121 6823 12967 12971 14003 20186
How do I sort it in Perl?
Using @sorted = sort(@_); gives me an alphabetical ordering:
13041 13045 14003 20186 4109 4121 6823
How do I get a numerical ordering? Does Perl have built-in functions for merge-sort, insertion-sort, etc.?