in reply to Re: Insertion sort in perl
in thread Inertion sort in perl

And as an example of the two different types of ordering (i.e., the default lexicographic-ascending of sort vs. numeric ascending), consider:
>perl -wMstrict -le "my @unsorted = (1, 10, 100, 11, 9, 3, 5, 2); my @lexic_sorted = sort @unsorted; print qq{@lexic_sorted}; my @numeric_sorted = sort { $a <=> $b } @unsorted; print qq{@numeric_sorted}; " 1 10 100 11 2 3 5 9 1 2 3 5 9 10 11 100