}
@Override
public boolean isAscending() {
return _ascending;
}
<BUG>@Override
public boolean isAscending(String field) {
if (field.equals("type")) {
return isAscending();
}
else {
return true;
}
}</BUG>
private boolean _ascending;

}
public SyncDLObjectTypeComparator(boolean ascending) {
_ascending = ascending;
}
@Override
public int compare(SyncDLObject syncDLObject1, SyncDLObject syncDLObject2) {
String type1 = syncDLObject1.getType();
String type2 = syncDLObject2.getType();
int value = type1.compareTo(type2);
if (_ascending) {
return value;
}
