I found one way to do it.
I can find intersection between sweep line and edges of polygon and then sort them by X coordinates of their intersection points. That way I can also easily find out which edge lies immediately above current vertex.
I'm just wondering if there is some more efficient way?