Here's a good checklist to keep in mind when writing sort routines. It's intended for C++ or .NET, but it applies to perl as well.
I think all of your variants are ok, but it's a good list to have handy just in case you need to figure out why sort is core dumping :)
In reply to Re: Genesis of a sort routine
by RMGir
in thread Genesis of a sort routine
by greenFox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |