rename sort to rearrange