The optimization in 46aebf132b broke a test that relied on the exact ordering of k-NN in a test on a minute dataset.
46aebf132b