in reply to Need help making my Merge Sort implementation stable
Rough guess, untested:
I'm missing a second check against index 11, but I don't have any idea why you're sorting on the same field twice, and it's a bit convoluted for me right now :-)@data = sort { $a->[8] <=> $b->[8] or $a->[12] <=> $b->[12] or $a->[11] <=> $b->[11] } @data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help making my Merge Sort implementation stable
by taffer (Novice) on Jul 03, 2008 at 21:29 UTC |