> I managed to break it again by ordering rows only by the second column> of the index. Test script attached.
I was confused. It is undefined behavior. Sorry for the noise.