default_reporter.js
function sortKeys(obj)
{
  var sortedObj = {};

  if (typeOf(obj) == 'object')
  {
    Object.keys(obj).sort().forEach(function(key)
    {
      sortedObj[key] = sortKeys(obj[key]);
    });

    obj = sortedObj;
  }

  return obj;
}
function sortKeys(obj)
{
  var sortedObj = {};

  if (typeOf(obj) == 'object')
  {
    Object.keys(obj).sort().forEach(function(key)
    {
      sortedObj[key] = sortKeys(obj[key]);
    });

    obj = sortedObj;
  }

  return obj;
}
function sortKeys ( obj ) { var sortedObj = { } ; if ( typeOf ( obj ) == 'object' ) { Object . keys ( obj ) . sort ( ) . forEach ( function ( key ) { sortedObj [ key ] = sortKeys ( obj [ key ] ) ; } ) ; obj = sortedObj ; } return obj ; }
Tries really hard to sort object's keys alphabetically

@param   {object} obj - object to sort
@returns {object} - sorted object
Tries really hard to sort object s keys alphabetically