Parent-child layout in Queries & Linked References

Current behaviour for “Next” or “Linked References” repeats the parent for each child. e.g.

Page
Parent A
Child A
Parent A
Child B

I would like to change the layout to be:

Page
Parent A
Child A
Child B

How do i change this across all pages please?
nb I can see the “unlinked references” follows my desired layout!

thanks

one-time bump for any answer