code: 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;
  }
docs: Tries really hard to sort object's keys alphabetically
  
  @param   {object} obj - object to sort
  @returns {object} - sorted object