code: function(obj, func) {
  		// define default sort function - by key
  		if (!func) func = function(a, b) {return a.key > b.key;};
  
  		// convert object to array
  		var arr = _.toArray(obj);
  
  		// sort array using function
  		arr.sort(func);
  
  		// convert array back to object
  		_.deleteAll(obj);
  		_.fromArray(arr, obj);
  
  		// return obj
  		return obj;
  	}
docs: sorts object attributes according to order defined by func default: sort by key