Cylc tui display order

Hi,
I was wondering how the task namespace dispaly order was controlled? I have not looked in the jupyter server as its not configured where I’m testing things, but in the TUI I’m guessing it is in some form of alphabetical order, as per the screenshot below? In the .cylc files, the task namespace definition is in numerical order, -3day to 4day, which is how it displayed in the GUI in Cylc7, and what I expected in the TUI.

image

Has the namespace order configuration changed, or is this just a TUI thing?

Thanks,
Tom

TUI uses a NaturalSort class to “sort strings as a human would”. See cylc/flow/tui/util.py if you’re interested in exactly how that works.

TUI will grow more features in due course, including sort order options, I expect. First development priority is to feed it by GraphQL subscription, like the web UI, to avoid inefficient regular global updates (this is the main reason for the warning at the top of the screen about it being experimental).

I’ve opened a (low priority) issue for this: TUI natural sort - negative numbers · Issue #5421 · cylc/cylc-flow · GitHub (PR welcome if you want to tackle it yourself)