Reordering and reformatting sections