kabouzeid / turm

TUI for the Slurm Workload Manager
https://crates.io/crates/turm
MIT License
121 stars 4 forks source link

Add natsort option #12

Closed evanr70 closed 1 year ago

evanr70 commented 1 year ago

Allowing for the sorting of jobs by various parameters might be useful. For me, the most helpful case is applying a natural sort to the job name:

Unsorted:

image

Sorted:

image

I've added a key hint as with the other key-press actions.

No pressure to merge this, it's mainly for my own benefit, but it's here if you want it!

kabouzeid commented 1 year ago

I think this is already possible with --sort. I'd maybe try --sort "i", see if that's what you want. FYI, Slurm's default for sort is P,t,-p.