Welcome to the Monastery | |
PerlMonks |
Re: Sort problemsby ccn (Vicar) |
on Dec 11, 2008 at 14:47 UTC ( [id://729699]=note: print w/replies, xml ) | Need Help?? |
Schwartzian transform
Make a sortable pair for each element of the array. Concatenate first letter with all the numbers in an element. Expand every number to 5 digits with leading zeros. Then sort the pairs alphabetically by second element and take original elements from sorted pairs
In Section
Seekers of Perl Wisdom
|
|