mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-20 18:51:26 -03:00
feat(autocomplete): group relative-path results by folder (#1091)
Autocomplete suggestions were ranked purely by relevance across the whole library, so same-named loras from different subfolders interleaved and were hard to tell apart. Results are now bucketed by folder (root first, then alphabetically, with nested paths sorting naturally) while keeping the existing relevance ordering within each folder group.
This commit is contained in:
@@ -1398,7 +1398,8 @@ class AutoComplete {
|
||||
}
|
||||
|
||||
// Merge and deduplicate results while preserving order from backend
|
||||
// Backend returns results sorted by relevance, so we maintain that order
|
||||
// Backend returns results grouped by folder and sorted by relevance
|
||||
// within each group, so we maintain that order
|
||||
const seen = new Set();
|
||||
const mergedItems = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user