Code example for SortedMap

Methods: firstKey, get, size, toString

0
    		points = room.orderByResults(lastScanResults);
    	} else { 
    		points = room.orderByProbability(lastScanResults, sigma);
    	} 
    	 
    	log.setText(points.toString().replace(',', '\n'));
    	 
    	if (activePoint != null) {
			activePoint.setActive(false);
		} 
		 
		room.clearActivePoints();
		 
		if (points.size() > 0) {
			activePoint = points.get(points.firstKey());
			activePoint.setActive(true);
		} 
		 
		map.reDraw();
    }