XWiki 9.11.3. We are generating a PDF export of a single page, with several dozen children. The child page tree is only one level deep. The root page has a documentTree which shows the children in alphabetical order based on folder name (identical to file name for each article) which is great. This forms a visual table of contents for the site.
When we generate a PDF Export of the root page, and include children, the pages in the PDF TOC come out in a random order, apparently by creation date. SOMETIMES they come out in alphabetical order as desired, but it’s random.
I’ve read https://network.xwiki.com/xwiki/bin/view/DocXE981En/CustomizeExportLookAndFeel and https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HCustomizingthePDFexportLook26Feel and tried overriding the pdf.vm in the skin, adding a $sorttool.sort($pages, “fullName”). I’ve tried overriding the macros.vm includeChildren method, adding a the same sort to the child pages. Neither has any effect.
How can we get a reliably sorted TOC in the PDF Export?