if (o2 == null)
{
return -1;
}
Column column1 = o1.getCell(field);
Column column2 = o2.getCell(field);
if (column1 == null)
{
return column2 == null ? 0 : 1;
}
if (column2 == null)
{
return -1;
}
AbstractType<?> type = column1.getType();
ByteBuffer value1 = column1.getRawValue();
ByteBuffer value2 = column2.getRawValue();
return reverse ? type.compare(value2, value1) : type.compare(value1, value2);
}
};
}