moved to octave's built-in sort().  So much easier and faster than my crappy attempts.  Only thing is the best fitness values seem off by a bit - too good by about 0.5e-2.  Might be extra fractional components added during import of data (for some reason, octave adds bullshit digits beyond what it is given)