|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: sort empty stringby pijll (Beadle) |
| on Jul 29, 2003 at 16:36 UTC ( [id://278978]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You can use a more complex sort routine. However, any extra code there will be executed for each comparison, O(N log N) times IIRC. As you are using a Schwartzian transform anyway, just make sure that empty strings are mapped to a value that sorts last. E.g. (untested):
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||