Line Intersection help

Hello everyone, I’m stuck and I think it’s probably a fairly simple thing I am trying to do, so I’m hoping someone can help me out quickly. I’m trying to get the intersection points of the lines so that I can sort them and create a faceted curve along the red line in the second image. I can’t seem to get the lines to intersect with themselves, what am I missing?

Thanks