Block block = blocks[sortChannel];
Block currentMaxValue = currentMax[sortChannel];
// compare the right value to the left block but negate the result since we are evaluating in the opposite order
int compare = -currentMaxValue.compareTo(sortOrder, 0, block, position);
if (compare != 0) {
return compare;
}
}
return 0;