docs: function stabilize(comparator, descending, arr1, arr2) { // eslint-disable-line no-shadow
      var x = arr1[0];
      var y = arr2[0];
  
      if (x === y) {
          x = descending ? arr2[1] : arr1[1];
          y = descending ? arr1[1] : arr2[1];
      } else {
          if (y === null) {
              return -1;
          }
          if (x === null) {
              return 1;
          }
      }
  
      return comparator(x, y);
  }