code: function compSort(p1, p2) {
      if (p1[0] > p2[0]) {
        return -1;
      } else if (p1[0] < p2[0]) {
        return 1;
      } else if (p1[1] > p2[1]) {
        return -1;
      } else if (p1[1] < p2[1]) {
        return 1;
      } else {
        return 0;
      }
    }
docs: /*
  Internal: used for sorting