def compareYAscending(point, pointOther):
 if (point.y < pointOther.y):
  return (-1)
 return int((point.y > pointOther.y))

def compareYAscending ( point , pointOther ) : if ( point . y < pointOther . y ) : return ( - 1 ) return int ( ( point . y > pointOther . y ) )
get comparison in order to sort points in ascending y .