Rearrange doc order