lib/third_party/tracing/base/iteration_helpers.js
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;
  }
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;
  }
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 ; }
Compares two values when one or both might be undefined. Undefined
values are sorted after defined.
Compares two values when one or both might be undefined . Undefined values are sorted after defined .