buffer render order with setSort not working?

For performance reasons, I need to control the order in which my buffers render, because some are used as textures in the scene of other buffers. I’ve used setSort on the buffers as described in the manual. I used Intel GPA Frame Analyzer to analyze the rendering process and according to it the buffers are just being rendered in the order they were created instead of according to the sort order.

How would I go about debugging if this is a fault in the analyzer (reporting wrong render order) or in Panda (ignoring sort order)?

Hmm, you can see the order in which Panda thinks it’s rendering buffers by looking at the “Piano Roll” graph in PStats.