docs: function sortByDistance(a, b) {
    const deltaA = squaredDistanceToSegment(this.pixelCoordinate_, a.segment);
    const deltaB = squaredDistanceToSegment(this.pixelCoordinate_, b.segment);
    return deltaA - deltaB;
  }