function(from, to) {
		var templateNodes = this.templateNodes[from];
		
		// insert at the position (before nodes of this.templateNodes[position])
		for(var i = 0; i < templateNodes.length; i++) {
			this.domElement.insertBefore(templateNodes[i], this.templateNodes[to][0]);
		}
		
		this.templateNodes.splice(from, 1);
		this.templateNodes.splice(to, 0, templateNodes);
	}
function(from, to) {
		var templateNodes = this.templateNodes[from];
		
		
		for(var i = 0; i < templateNodes.length; i++) {
			this.domElement.insertBefore(templateNodes[i], this.templateNodes[to][0]);
		}
		
		this.templateNodes.splice(from, 1);
		this.templateNodes.splice(to, 0, templateNodes);
	}
function ( from , to ) { var templateNodes = this . templateNodes [ from ] ; // insert at the position (before nodes of this.templateNodes[position]) for ( var i = 0 ; i < templateNodes . length ; i ++ ) { this . domElement . insertBefore ( templateNodes [ i ] , this . templateNodes [ to ] [ 0 ] ) ; } this . templateNodes . splice ( from , 1 ) ; this . templateNodes . splice ( to , 0 , templateNodes ) ; }
currently only works if from > to
currently only works if from > to