def comparePointIndexDescending(self, other):
 if (self.pointIndex > other.pointIndex):
  return (-1)
 if (self.pointIndex < other.pointIndex):
  return 1
 return 0

def comparePointIndexDescending ( self , other ) : if ( self . pointIndex > other . pointIndex ) : return ( - 1 ) if ( self . pointIndex < other . pointIndex ) : return 1 return 0
get comparison in order to sort y intersections in descending order of point index .