summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-19 11:13:03 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-19 11:13:03 +0100
commit8eb29e2b0d3b6079c7ffa9ee7c5ecdafc3e149de (patch)
tree5c049f9c543d677c83aa85e283ee22e031b91c06 /lib
parentcdf3f2ffe49d9836be74e60a83365d26f378fc88 (diff)
--show-model-complexity: sort lexically
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.py b/lib/cli.py
index f289d4a..81fd9ae 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -216,8 +216,8 @@ def print_model_complexity(model):
for attr in model.attributes(name):
if len(attr) > attr_len:
attr_len = len(attr)
- for name in model.names:
- for attribute in model.attributes(name):
+ for name in sorted(model.names):
+ for attribute in sorted(model.attributes(name)):
mf = model.attr_by_name[name][attribute].model_function
prefix = f"{name:{key_len}s} {attribute:{attr_len}s}: {mf.get_complexity_score():7d}"
try: