Rearrange and renumber sections.