code: function sort(o) {
      if (self.getType(o) === 'object') {
        return Object.keys(o).sort().map(function(key) {
          return { k: key, v: sort(o[key]) };
        });
      } 
      return o;
    }
docs: /* sort the elements in object