Rearrange categories