in reply to Argument isn't numeric in sort -- resolve or ignore?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Argument isn't numeric in sort -- resolve or ignore?
by stevieb (Canon) on Feb 26, 2016 at 00:35 UTC | |
by GrandFather (Saint) on Feb 26, 2016 at 01:56 UTC | |
by davido (Cardinal) on Feb 26, 2016 at 06:27 UTC | |
by Argel (Prior) on Feb 26, 2016 at 12:05 UTC | |
by davido (Cardinal) on Feb 26, 2016 at 16:00 UTC | |
by Argel (Prior) on Feb 26, 2016 at 18:28 UTC |