ascSort method

int ascSort(
  1. Intersection a,
  2. Intersection b
)

Implementation

int ascSort(Intersection a, Intersection b) {
  return a.distance - b.distance >= 0 ? 1 : -1;
}