From 88c3f4a667a80b9f3042797a7996bcbf7cd98690 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Tue, 28 Jun 2022 13:58:18 +0200 Subject: [PATCH] fix: guaranteed ordering of traffic light metrics Based on lexicographical ordering --- popmon/visualization/traffic_light_section_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popmon/visualization/traffic_light_section_generator.py b/popmon/visualization/traffic_light_section_generator.py index e737f00b..df3b3b41 100644 --- a/popmon/visualization/traffic_light_section_generator.py +++ b/popmon/visualization/traffic_light_section_generator.py @@ -126,8 +126,8 @@ def transform( ) dates = [short_date(str(date)) for date in df.index.tolist()] - metrics = filter_metrics( - df.columns, self.ignore_stat_endswith, self.show_stats + metrics = sorted( + filter_metrics(df.columns, self.ignore_stat_endswith, self.show_stats) ) plots = [