Oblique projection - render order error

I’m implementing* the oblique projection function from the “After the Flood” demo.
It works fine…

until the camera moves to the other side of the clipping plane, then things go all wonky. i.e. the render order is fubar.

Anyone have any suggestions as to what’s going wrong and why and how to fix it?