XP is just a number | |
PerlMonks |
Re: Re: complex sortby jynx (Priest) |
on Dec 25, 2001 at 04:51 UTC ( [id://134255]=note: print w/replies, xml ) | Need Help?? |
a couple points, The bug is that you sort the second type position numerically instead of lexicographically. However, i don't like the way you leave the elements in @data as array references when you're through sorting. You should have finished up the Schwartz Transform so that the original data was still there, just reorganized. If we make those corrections we come up with: jynx update: Unfortunately, before i even got to post this, Ovid posted a better solution that makes sure all the values are defined before being sorted as well. 1: this was changed due to Ovid's note...
In Section
Seekers of Perl Wisdom
|
|