Reorder some lines