Fix merge-commit, missing the improvement introduced in commit: 63c9caaf96
This commit is contained in:
parent
4850581c53
commit
ceb53248ce
|
@ -66,11 +66,8 @@ public class AggregationServiceImpl implements AggregationService {
|
||||||
|
|
||||||
private <T extends AggregationInfo> Map<String, List<T>> createYearMap(List<T> aggregationHistory) {
|
private <T extends AggregationInfo> Map<String, List<T>> createYearMap(List<T> aggregationHistory) {
|
||||||
|
|
||||||
aggregationHistory = aggregationHistory.stream()
|
|
||||||
.sorted(Comparator.comparing(AggregationInfo::getDate).reversed())
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
|
|
||||||
return aggregationHistory.stream()
|
return aggregationHistory.stream()
|
||||||
|
.sorted(Comparator.comparing(AggregationInfo::getDate).reversed())
|
||||||
.collect(Collectors.groupingBy(item -> getYear(item.getDate())));
|
.collect(Collectors.groupingBy(item -> getYear(item.getDate())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue