Forget about those two lines for a moment. Why would your comparator return $a, or $b, or -1, 0, 1? The first and final returns will return the result of N <=> M, whereas all the other returns return the value being compared instead. That's got to be a bug.
Dave
In reply to Re: Argument isn't numeric in sort -- resolve or ignore?
by davido
in thread Argument isn't numeric in sort -- resolve or ignore?
by Argel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |