if (comparatorExpression != null)
{
comparator = (Comparator) evaluateExpression(comparatorExpression, evaluation);
}
return new BucketDefinition(bucket.getExpression().getValueClass(),
bucket.getOrderByExpression(), comparator, bucket.getOrderValue(),
group.getTotalPositionValue());
}