Sort limit scope label values (#9)

This commit is contained in:
Egor Cherniak 2023-09-20 14:12:28 +03:00 committed by GitHub
parent c158f0a230
commit 8df913149e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,7 @@ public class LimitsService {
}) })
.stream() .stream()
.flatMap(stringObjectMap -> stringObjectMap.keySet().stream()) .flatMap(stringObjectMap -> stringObjectMap.keySet().stream())
.sorted()
.collect(Collectors.collectingAndThen( .collect(Collectors.collectingAndThen(
Collectors.joining(","), Collectors.joining(","),
s -> Objects.equals(s, "") ? "all" : s)); s -> Objects.equals(s, "") ? "all" : s));