presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/organization/CompactionSetCreator.java/CompactionSetCreator/getShardIndexInfoComparator
class CompactionSetCreator:    private static Comparator<ShardIndexInfo> getShardIndexInfoComparator(Table tableInfo)
    {
        if (!tableInfo.getTemporalColumnId().isPresent()) {
            return comparing(ShardIndexInfo::getUncompressedSize);
        }

        return comparing(info -> info.getTemporalRange().get(),
                comparing(ShardRange::getMinTuple)
                        .thenComparing(ShardRange::getMaxTuple));
    }