summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli.py b/lib/cli.py
index 36371f1..8baca9a 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -160,7 +160,7 @@ def _print_cartinfo(prefix, model):
def print_splitinfo(info, prefix=""):
if type(info) is df.SplitFunction:
- for k, v in info.child.items():
+ for k, v in sorted(info.child.items()):
print_splitinfo(v, f"{prefix} {info.param_name}={k}")
elif type(info) is df.ScalarSplitFunction:
print_splitinfo(info.child_le, f"{prefix} {info.param_name}≤{info.threshold}")