int sortChannel = sortChannels.get(i);
Block leftBlock = pagesIndex.getChannel(sortChannel).get(leftBlockIndex);
Block rightBlock = pagesIndex.getChannel(sortChannel).get(rightBlockIndex);
SortOrder sortOrder = sortOrders.get(i);
int compare = sortOrder.compareBlockValue(sortTypes.get(i), leftBlock, leftBlockPosition, rightBlock, rightBlockPosition);
if (compare != 0) {
return compare;
}
}
return 0;