*/
public int compare(Object o1, Object o2) {
int result = 0;
if (o1 instanceof StringCountRecord
&& o2 instanceof StringCountRecord) {
StringCountRecord sc1 = (StringCountRecord) o1;
StringCountRecord sc2 = (StringCountRecord) o2;
result = new Integer(sc1.getString()).compareTo(new Integer(sc2
.getString()));
}
return result;
}