Hello, I'm looking for a way to sort header items like CSS or JavaScript files. I'm using renderHead() to add items to the head section, and I'm also utilizing inheritance for my pages. The order is perfect for the pages: the parent items come first, followed by the children items.
However, the problem arises with panels. Their header items are created before the page's items, whereas I would like them to appear after the page items. Additionally, if I add a panel using Ajax, its header items are added at the end. How can I control the order of these items? Specifically, I want the page items to appear first, followed by the panel items. Thank you.