diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-19 11:13:03 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-19 11:13:03 +0100 |
commit | 8eb29e2b0d3b6079c7ffa9ee7c5ecdafc3e149de (patch) | |
tree | 5c049f9c543d677c83aa85e283ee22e031b91c06 | |
parent | cdf3f2ffe49d9836be74e60a83365d26f378fc88 (diff) |
--show-model-complexity: sort lexically
-rw-r--r-- | lib/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |