Order the Z-Indices of the compartments by their area
This happens on the GPML export from MINERVA.
Compartments in GPML cover reactions, especially when they are colour-filled (see the example).
Their Z-Index should be assigned based on their area, starting with the largest.