// sort the index
pageIndex.sort(orderingChannel, orderFields, ordering);
// create partition comparator
ChannelIndex index = pageIndex.getIndex(orderingChannel);
partitionComparator = new MultiSliceFieldOrderedTupleComparator(partitionFields, partitionOrder, index);
// create order comparator
index = pageIndex.getIndex(orderingChannel);
orderComparator = new MultiSliceFieldOrderedTupleComparator(sortFields, sortOrder, index);
}
}