docs: function exportSortDirection(feed,sort,sortDirection,sortDirectionName) {
  	s = '/**\n';
  	s += '* '+sort.title+'\n';
  	if (sortDirection.href) {
  		s += '* ' +sortDirection.href+'\n';
  		if (!checkHref(sortDirection.href,sortDirection.value)) {
  			console.log('! sort '+sortDirectionName+'('+sortDirection.value+') does not exist in');
  			console.log('  '+sortDirection.href);
  		}
  	}
  	if (sortDirection.is_default == 'true') {
  		s += '* isDefault\n';
  	}
  	if (sortDirection.depends_on) {
  		s += '* depends_on = '+sortDirection.depends_on+'\n';
  	}
  	if (sortDirection.prohibits) {
  		s += prohibits(sortDirection.prohibits);
  	}
  	s += '*/\n';
  	fs.appendFileSync(apijs, s+'const '+sortDirectionName+" = 'sort="+sort.name+'&'+sortDirection.name+'='+sortDirection.value+"';\n", 'utf8');
  	cache.push(sortDirectionName+' : '+sortDirectionName+',\n');
  
  	var param = {};
  	for (var p in params) {
  		if (params[p].name == 'sort_direction') {
  			param = params[p];
  		}
  	}
  	if (!param.name) {
  		param.name = 'sort_direction';
  		param.in = 'query';
  		param.description = 'Sort direction';
  		param.schema = {};
  		param.schema.type = 'string';
  		param.required = false;
  		param.schema.enum = [];
  		params.push(param);
  	}
  	if (param.schema.enum.indexOf(sortDirection.value)<0) {
  		param.schema.enum.push(sortDirection.value);
  	}
  
  	return s;
  }