Perl-Sensitive Sunglasses | |
PerlMonks |
Re: sorting numerically and alphabeticallyby Corion (Patriarch) |
on Jun 28, 2006 at 12:34 UTC ( [id://557994]=note: print w/replies, xml ) | Need Help?? |
For your limited example, sort already does exactly what you want. I guess though that what you want isn't what sort does for the following example:
What you want is called "natural sorting", and tye has a nice node on it - our categorized Questions and Answers also has How do I do a natural sort on an array?.
In Section
Seekers of Perl Wisdom
|
|