@Override
	public int compare(WritableComparable a, WritableComparable b) {
		MyPairWritable p1 = (MyPairWritable) a;
		MyPairWritable p2 = (MyPairWritable) b;
		if(!p1.getFirst().toString().equals(p2.getFirst().toString())){
			return p1.getFirst().toString().compareTo(p2.getFirst().toString());
		}else{
			return p1.getSecond().get() - p2.getSecond().get();
		}
	}