Rearrange order