return new Result(overviewMap, false);
} else if (StringUtils.isNotBlank(aggregate)) {
// sort result
Collections.sort(entries, new GraphObjectComparator(timestampProperty, false));
final long intervalStart = range != null ? range.start : beginTimestamp;
final long intervalEnd = range != null ? range.end : endTimestamp;
// aggregate results
return aggregate(entries, aggregate, intervalStart, intervalEnd);
} else {
// sort result
Collections.sort(entries, new GraphObjectComparator(timestampProperty, false));
return new Result(entries, entries.size(), true, false);
}
}