Rearrange index.