Rearrange method