in reply to Need help making my Merge Sort implementation stable

Rough guess, untested:

@data = sort { $a->[8] <=> $b->[8] or $a->[12] <=> $b->[12] or $a->[11] <=> $b->[11] } @data;
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 :-)

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
    Ahh, I fat fingered the second 11, it was supposed to be a 10.