function getAllApplicableCnTypesSorted()

in src/main/resources/SLING-INF/libs/sling/resource-editor/static/js/tree/AddNodeController.js [150:162]


	function getAllApplicableCnTypesSorted(nodeNameList, appliCnTypesByNodeName){
		var allAppliCnTypes = [];
		for (var nodeNameIndex in nodeNameList) {
			var nodeName = nodeNameList[nodeNameIndex];
			for (var nodeType in appliCnTypesByNodeName[nodeName]){
				if (allAppliCnTypes.indexOf(nodeType)<0){
					allAppliCnTypes.push(nodeType);
				}
			}
		}
		allAppliCnTypes.sort();
		return allAppliCnTypes;
	}