public int compare(Object o1,Object o2){
	    	Similarity sim1 = (Similarity)o1;
	    	Similarity sim2 = (Similarity)o2;
	    	if(sim1.getSimilar() < sim2.getSimilar())
	    		return 1;
	    	else if (sim1.getSimilar() > sim2.getSimilar())
	    		return -1;
	    	else if (sim1.getSimilar() == sim2.getSimilar()){
	    		if (sim1.getItem2() > sim2.getItem2())
	        	   return 1;
	    	}
	    	return -1;
	    }