From f6dd5e94a11712667d9a5c648fb513400aa63797 Mon Sep 17 00:00:00 2001 From: Tom Martensen Date: Mon, 18 Sep 2023 15:54:00 +0200 Subject: [PATCH] fix(cost report): sort flavors alphabetically for more consistent output (#992) --- scripts/cost-estimation/render_costs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/cost-estimation/render_costs.py b/scripts/cost-estimation/render_costs.py index 4ee2bb0d7..a230dd490 100644 --- a/scripts/cost-estimation/render_costs.py +++ b/scripts/cost-estimation/render_costs.py @@ -48,6 +48,8 @@ def main(): usage = read_usage_from_stdin() cost_per_flavor_env = calculate_costs(usage) + cost_per_flavor_env.sort(key=lambda x: x["flavor"]) + print("```") print(tabulate( cost_per_flavor_env,