Rhino 8 references geometry order vs R7

Recently opened a Rhino 7+grasshopper combo in rhino 8 and found all the referenced geometry to be out of order (different order then Rhino 7), so all my downstream components are reading the wrong data.

I’m using geometry pipeline to read geometry from rhino layers, I’ve tried using query model object in R8, but it’s the same order as geometry pipeline. is there anyway to recreate the reference order of R7? I don’t want to mannually dig thru hundred of geometries to rearrange the order.

Could you share the .3dm and .gh file?

sure, here’s the files:
R7.3dm (141.6 KB)

R7.gh (4.3 KB)

In R7, the order is the single surface first, then the polysurface, but in R8 the polyserface comes first.

I’ve already found a solution tho, using user text, i script s python script to embed the geometry index, and in R8 i simply sort using that index.
but if there’s other solutions, i’m happy to learn.

Thank you for your feedback. I found that in Rhino 8, the order of Geometry Pipeline is exactly the opposite of Rhino 7, for your reference.