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