Array.prototype.sort
It looks like your browser’s Array#sort implementation is unstable when tested using an array of n elements. Try 11 elements.
Array#sort
Please enable JavaScript.
— @mathias