if (sort.getLength() > 0) {
Dictionary<String, ?> row1;
if (o1 instanceof Dictionary<?, ?>) {
row1 = (Dictionary<String, ?>)o1;
} else {
row1 = new BeanDictionary(o1);
}
Dictionary<String, ?> row2;
if (o2 instanceof Dictionary<?, ?>) {
row2 = (Dictionary<String, ?>)o2;
} else {
row2 = new BeanDictionary(o2);
}
result = 0;
int n = sort.getLength();