From f25b79d4fd6c9f72c2c02ea921912f18afc93ff5 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Mon, 13 Jan 2025 16:46:58 +0000 Subject: [PATCH] Sort called children by `ctime` --- src/aiidalab_qe/app/result/components/status/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiidalab_qe/app/result/components/status/tree.py b/src/aiidalab_qe/app/result/components/status/tree.py index 1dde3915b..ce684f5d1 100644 --- a/src/aiidalab_qe/app/result/components/status/tree.py +++ b/src/aiidalab_qe/app/result/components/status/tree.py @@ -276,7 +276,7 @@ def _build_header(self): def _add_branches(self, node=None): node = node or self.node - for child in node.called: + for child in sorted(node.called, key=lambda child: child.ctime): if child.pk in self.pks or isinstance(child, orm.CalcFunctionNode): continue TreeNodeClass = (