Reord the structure