Adds 'Path' sorting for Extra network cards #13968
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Sorry for re-creating the PR, but I messed up with commits in my fork and created a new one from scratch :)
Related commit:
d9499f4
Sorting by "Name" does not take into account nested directories if loras are placed in them. When there are a lot of loras, the "Path" sorting makes it convenient to control their display order in the "all" subdir tab using directory naming.
For example, after the loras in the root directory, I need the "all" tab to display the loras from the "Tweaks" subdir first, then "Style", and finally "Character". I name these subdirs appropriately and get the result I want. Sorting by "Name" sends character loras to the top of the list for obvious reasons. Organizing directories loses its meaning.
Using subdir tabs is not always handy, because when you change tab, for example, from "Lora" to "Checkpoints" you have to click them every time to change the "Search" value. It is easier to organize the cards displaying order using directory names once, and use the subdir tabs as needed.
Also, sorting by "Path" now works correctly for "Textual Inversions" too. Before that, the "Default Sort" worked there in a similar way with "Name".
Screenshots/videos:
Checklist: