protected int compareComponentOrder(String order1, String order2){
    	String[] split1 = order1.split("\\.");
    	String[] split2 = order2.split("\\.");

    	int maxLen = split1.length > split2.length ? split1.length : split2.length;
    	
    	int[] orderSplit1 = new int[maxLen];
    	int[] orderSplit2 = new int[maxLen];
    	
    	for(int i=0; i<maxLen; i++){
    		if(i < split1.length){
    			orderSplit1[i] = Integer.parseInt(split1[i]);
    		}
    		if(i < split2.length){
    			orderSplit2[i] = Integer.parseInt(split2[i]);
    		}
    	}
    	
    	//compare
    	for(int i=0; i<maxLen; i++){
    		int comp1 = orderSplit1[i];
    		int comp2 = orderSplit2[i];
    		if(comp1 > comp2){
    			return 1;
    		}
    		if (comp1 < comp2){
    			return -1;
    		}
    	}
    	return 0;
    }