Rearrange sections into a table