docs: function comparePossiblyUndefinedValues(x, y, cmp, opt_this) {
      if (x !== undefined && y !== undefined)
        return cmp.call(opt_this, x, y);
      if (x !== undefined)
        return -1;
      if (y !== undefined)
        return 1;
      return 0;
    }