Rearrange manifest file