I'd like to keep certain files together in the list, even though whoever came up with the naming convention didn't think of that. For example, I want .~lock.Frog.odt# to immediately follow Frog.odt.
I'd also like to customize the ordering sometimes; e.g. I want foo.h to come before foo.cpp. That's not something I necessarily always want though, so applying a sort order to the list would be nice to do on demand, perhaps similarly to applying a mask. (In this case, I wanted to go through all file files, but examine each header first.)
I think a rewrite-rule would do the trick: Apply a series s/match/repl/ to the names, stopping with the first one that matches. Sort on the resulting repls, but the user doesn't see them except when debugging the sort order. Sort order list is named, so you can easily give one in the input bar. Entries in the list can be other list names, so you can reuse common rule set components.
XYplorer Beta Club