anchor.diff:  
   	}
   
  +}
  +
  +function addSortOrder(currentKey, parentSortOrder){
  +	if(indexedNodes[currentKey].sortOrder === undefined){
  +		indexedNodes[currentKey].sortOrder = (parentSortOrder + 1);
  +	}
  +	for(var i = 0; i < indexedNodes[currentKey].to.length; i++){
  +		addSortOrder(indexedNodes[currentKey].to[i], parentSortOrder + 1);
  +	}
   }
   
   // return if any to is found
  
positive.code: 	});
  	allNodes.push(cStart);
  	nodes2["start"] = { node: cStart, to : [ res.start.to] };
  
  	for(var i = 0; i < res.decisionOrForkOrJoin.length; i++){
  		yPos += 100;
  
negative.code: 	var cEnd = fsa.State.create({ position: {x: 200, y: yPos}, label: "End" });
  	allNodes.push(cEnd);
  	nodes2[res.end.name] = {node: cEnd, to:[] };
  	indexedNodes[res.end.name] = { to : [] };
  
  	// var sortOrder = 1;
  	var currentKey = "start"; ;
  	// indexedNodes[currentKey].sortOrder = sortOrder;
  	addSortOrder(currentKey, 0);
  //	while(true){
  //		traverse_counter++;
  //		if(traverse_counter > 100){
  //			break;
  //		}
  //
  //	}
  
  
  
  	for(var prop in nodes2){	
  		var current = nodes2[prop];
  