code: function sortArgs(method, args) {
  
  		// get the method definition
  		var def = _.get(_client.types, method.replace(/\_Task$/i, '') + 'RequestType');
  		
  		// if found create the definition by calling its function
  		if (def) {
  			return getFields(def(), args);
  		}
  		return args;
  	}
docs: function to correctly order the arguments this is done because arguments in an incorrect order will cause the soap method to fail