Nodes/ComfyCollectorNodes/LoRA Loader Filtered (CCN)
ComfyUI Node

LoRA Loader Filtered (CCN)

LoRA Loader Filtered (CCN)

By valkymaera·Created 4 months ago·Updated 10 days ago· 1
LoRA Loader Filtered (CCN)
  • model
  • clip
  • model
  • clip
lora_name
strength_model1.00
strength_clip1.00
sort_bydate_modified
sort_orderdescending

The stock ComfyUI LoRA loader has one infuriating trait: its dropdown is alphabetical, so the LoRA you downloaded last night is buried wherever its name falls. LoRA Loader Filtered (CCN) is the same faithful loader with one upgrade - a picker you can sort by date modified, name, or size, in either direction. If you have 300 LoRAs, "sort by most recently added" turns a scroll-and-pray session into a 2-second task. The author wrote it because that's exactly the QoL gap they kept hitting, and it shows in the polish.

The mechanism is the interesting part, and it's worth understanding because it explains one quirk. The dropdown ordering can't be done in the node's Python INPUT_TYPES - at that point the backend has no idea what's in your folder beyond a static alphabetical list. So the pack ships a tiny HTTP endpoint (/ccn/lora_filter/list) that the frontend JavaScript calls. It reads your LoRA folder's metadata (modification time and file size for every file) and reorders the combo box client-side, leaving the backend completely unaware. The node's own docstring is honest about this: sort_by and sort_order are display-only. Whatever order you see in the picker, the selected LoRA loads identically to the built-in node. No behavioral difference, just a better menu.

Beyond the sorting, this is deliberately a faithful clone of the built-in loader - same lora_name combo, same strength_model / strength_clip (here stretching -100 to 100), same model + clip inputs, same caching of the last-loaded tensor dict so repeated runs don't re-read the file. It even shares the shortcut: if both strengths are 0, it passes the model and clip through untouched. The two outputs are model and clip, exactly like stock.

The one genuinely useful extra: ComfyUI's native combo-box type-to-filter works here for free. So not only can you sort by recency, you can start typing part of a filename to jump straight to it. Sort + type-to-filter together is the whole pitch.

Install

Part of ComfyCollectorNodes. ComfyUI Manager → search "ComfyCollectorNodes", or:

cd ComfyUI/custom_nodes
git clone https://github.com/valkymaera/ComfyCollectorNodes

Restart ComfyUI. It shows up under ComfyCollectorNodes → Loaders as "LoRA Loader Filtered (CCN)". No extra dependencies beyond stock ComfyUI (it uses the built-in server and aiohttp that ComfyUI already provides). No model files. MIT.

Common issues

Because the sorting is frontend-driven, the rare failure mode is the sort just not applying - usually because the custom node's JS extension didn't load (stale browser tab after an update, or the extension was disabled). Hard-refresh the browser and re-run; the endpoint itself is also visible at http://localhost:8188/ccn/lora_filter/list if you want to confirm it's alive. And remember: the sort is cosmetic. If you sort ascending by size and pick a file, the backend still treats it as a plain selection - there's no "hidden" behavior tied to the sort order. That's by design, and it means zero surprise in the sampling math.

CategoryComfyCollectorNodes/Loaders

Inputs (7)

NameTypeDefaultDescription
modelMODEL
clipCLIP
lora_nameCOMBO0 options:
strength_modelFLOAT1.00-100–100
strength_clipFLOAT1.00-100–100
sort_byCOMBOdate_modified3 options: date_modified, name, size
sort_orderCOMBOdescending2 options: descending, ascending

Outputs (2)

NameTypeDescription
modelMODEL
clipCLIP