Test to ensure Index sort remains stable