Re-ordering indexes of edges on perpendicular frames

I have swept curves along a rail (a different one on each end), sectioned them on perpendicular planes, offset and then unioned them to create frames on the planes. After deconstructing the BREP I am now trying to select certain edges using a domain. It works fine on all of the predominantly straight sections of the rail, but they are flipped at the curves. Without having to manually select those curves, can you force all the indexes to be orientated on all the sections?

unioned them, and am trt

I think its a tree thing, because its about the order of indexes in SOME of the sub-branches