laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Update Never mind, all wrong. Did the original post get updated?
So you want a sort? Ok.
The first match returns 0 for a match, so it falls through to the second comparison for things like 2,6 2,7 You need to split the values, otherwise 10,1 would sort before a pair like 2,6, and just using numeric sorting breaks at the comma. It would be even better to split the values ahead of time, but probably not necessary. (You could always use a Schwarzian Transform). In reply to Re: results from pairs combination
by suaveant
|
|