I need to sort pages in a document. All the pages start a section. When I move a page at the beginning the former page 1 does not start a section anymore. This is exactly like in the GUI. (And I consider this a bug.) In the GUI though the new page 2 still is marked as a section start and also the pageNumberStart is still correct. I only need to click on the radio button "Start page numbering at" (do not know the exact English wording) and everything is fine. The corresponding script command
however fails, as this will change the first page. I thought of just creating a new section and apply this to page 2 but this also does not work.
Then I thought I create a dummy page at the beginning do the sorting and remove dummy page. That looked promissing but also lead to nowhere.
This is the last try...
In case someone is interested... This is how I worked around. Every page got its current page name as a label. Then I moved lowest page at beginning, removed every section, except for default, reconfigured appliedSection of page 1. Then did the sorting by label, created sections again...