From 8df913149e0bc70aa00e43dc461494f839f4afe5 Mon Sep 17 00:00:00 2001 From: Egor Cherniak Date: Wed, 20 Sep 2023 14:12:28 +0300 Subject: [PATCH] Sort limit scope label values (#9) --- .../java/dev/vality/exporter/limits/service/LimitsService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/dev/vality/exporter/limits/service/LimitsService.java b/src/main/java/dev/vality/exporter/limits/service/LimitsService.java index 6a9d95e..8654f7c 100644 --- a/src/main/java/dev/vality/exporter/limits/service/LimitsService.java +++ b/src/main/java/dev/vality/exporter/limits/service/LimitsService.java @@ -178,6 +178,7 @@ public class LimitsService { }) .stream() .flatMap(stringObjectMap -> stringObjectMap.keySet().stream()) + .sorted() .collect(Collectors.collectingAndThen( Collectors.joining(","), s -> Objects.equals(s, "") ? "all" : s));