Skip to content

Commit

Permalink
fix: guaranteed ordering of traffic light metrics
Browse files Browse the repository at this point in the history
Based on lexicographical ordering
  • Loading branch information
sbrugman committed Jul 4, 2022
1 parent 47d6b17 commit 88c3f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popmon/visualization/traffic_light_section_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 88c3f4a

Please sign in to comment.