Yes, right now you need to do it manually.
To fix DOM order you basically need to select the section (Header to Footer) and click arrange > send to front. In the end of the process the Header should be the lowest and the Footer the highest.
Then you need to reorder the elements inside each section in same method or just to by dragging the elements from the layers panel.