Skip to content

Commit

Permalink
Merge pull request #6413 from oliver-sanders/tui-workflow-id-sort
Browse files Browse the repository at this point in the history
tui: sort workflows in natural order
  • Loading branch information
hjoliver authored Oct 17, 2024
2 parents 9b4bac3 + 55fb345 commit a7f6f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cylc/flow/tui/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
QUERY
)
from cylc.flow.tui.util import (
NaturalSort,
compute_tree,
suppress_logging,
)
Expand Down Expand Up @@ -363,5 +364,5 @@ async def _scan(self):
'stateTotals': {},
})

data['workflows'].sort(key=lambda x: x['id'])
data['workflows'].sort(key=lambda x: NaturalSort(x['id']))
return data

0 comments on commit a7f6f24

Please sign in to comment.