From a590c804cbf121c037d087a0b4196586e063f0fb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 1 Apr 2022 09:24:25 +0200 Subject: cli: show_quality=table: sort keys and attributes --- lib/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.py b/lib/cli.py index 978f6e7..fe0a5b3 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -115,8 +115,8 @@ def model_quality_table(header, result_lists, info_list): header[2].center(19), ) ) - for state_or_tran in result_lists[0].keys(): - for key in result_lists[0][state_or_tran].keys(): + for state_or_tran in sorted(result_lists[0].keys()): + for key in sorted(result_lists[0][state_or_tran].keys()): buf = "{:20s} {:15s}".format(state_or_tran, key) for i, results in enumerate(result_lists): info = info_list[i] -- cgit v1.2.3