Skip to content

Commit

Permalink
Sort called children by ctime
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 13, 2025
1 parent 8275cc4 commit f25b79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/result/components/status/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit f25b79d

Please sign in to comment.