ixfx
    Preparing search index...

    Function compareByY

    • Compares points based on Y value. X value is ignored. Returns values:

      • 0: If a.y === b.y
      • 1: A is below B (ie. a.y > b.y)
      • -1: A is above B (ie. a.y < b.y)

      Parameters

      Returns number

      arrayOfPoints.sort(Points.compareByY);