Monkeypatch file sort to date modified or custom sort instead of lexicographic.
Install as standard custom node.
Overrides folder_paths.get_filename_list functions, but does it a bit late so might not override for methods which import the functions directly earlier. There appear to be no such calls in vanilla installation or the extensions I have.
- Control sort method with parameters rather than DEF_SORT, DEF_REV constants. I dunno whether comfy has easy access to client side settings like webui. I guess one way could be to create a node containing the sort methods.
- Anti caching - if sort is changeable, need to empty cache_helper whenever the method is updated (or run a refresh) in order for it to take effect.
- Perform the sorting client side so that it's more convenient to multiple users.
