Rearrange blocks