int dataSize2 = lengths2[1];
int totalField1Size = lengths1[0] + dataSize1; // Header size + data
// size
int totalField2Size = lengths2[0] + dataSize2; // Header size + data
// size
int comparison = comparator.compare(b1, o.offset1, totalField1Size, b2,
o.offset2, totalField2Size);
o.offset1 += totalField1Size;
o.offset2 += totalField2Size;
if(comparison != 0) {
return (sort == Order.ASC) ? comparison : -comparison;