anchor.diff:  		}
   	}
   
  +	var currentSortOrder = 0;
  +	var yPos = 40;
  +	for(var i = 0; i < sortedNodeNames.length; i++){
  +		// how many same sort order there are?
  +		var sameSortCount = 1
  +		for(; i + sameSortCount < sortedNodeNames.length ;sameSortCount++){
  +			if(sortedNodeNames[i].sortOrder != sortedNodeNames[i + sameSortCount].sortOrder){
  +				break;
  +			}
  +		}
  +
  +		if(i + sameSortCount <= sortedNodeNames.length ){
  +			break;
  +		}
  +
  +		for(var j = 0; j < sameSortCount; j++){
  +			var circle = fsa.State.create({ position: {x: (PAPER_WITH/(sameSortCount + 1) * (j+1)), y: yPos}, label: sortedNodeNames[i + j].name });
  +		}
  +
  +		yPos += 80;
  +
  +	}
  +
   
   //	for(var prop in nodes2){	
   //		var current = nodes2[prop];
  
positive.code: 	}
  }
  
  // return if any to is found
  /*
  function knot(current){
  	traverse_counter++;
  	if(current.to.length == 0 || traverse_counter > 100){
  		return false;
  	}
  
  	for(var i = 0; i < current.to.length; i++){
  		current.node.joint(nodes2[current.to[i]].node, fsa.arrow).registerForever(nodes);
  		knot(current);
  	}
  	return true;
  }
  */
  
  $(function() {
  
  	$("#submitButton").click(submitButtonClicked);
  
negative.code: var traverse_counter = 0;
  var weightedNodes = {};
  
  var PAPER_WITH = 500;
  function drawDiagram(res){
  	Joint.paper("myfsa1", PAPER_WITH, 1000);
  	var fsa = Joint.dia.fsa;
  
  	var yPos = 50;
  