ISSUE-169 Sort topics (#172)

This commit is contained in:
German Osin 2021-02-01 18:01:18 +03:00 committed by Guzel738
parent 5518bbd196
commit b926498d03

View file

@ -68,6 +68,7 @@ public class ClusterService {
.map(c ->
c.getTopics().values().stream()
.map(clusterMapper::toTopic)
.sorted(Comparator.comparing(Topic::getName))
.collect(Collectors.toList())
).orElse(Collections.emptyList());
}