Comfy-Org / Comfy-Org/ComfyUI_frontend

[Feature Request]: sort node searchbox results by user's own frequence of use or most specialized type first

Open
#3,206 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

I just found out that the frequency number in the searchbox is statically derived from this file https://github.com/Comfy-Org/ComfyUI_frontend/blob/main/public/assets/sorted-custom-node-map.json ("Thanks to OpenArt (https://openart.ai) for providing the sorted-custom-node-map data, captured in September 2024.").

I always assumed it's the frequency of my own usage. Everytime I add a node: 1 usage.

I also would argue, when dragging out a input node of type int, the most likely node I want to connect is a simple integer node, or something which solely uses integers, but not something that has just one int under a mixture of other types.
Thus the searchbox results should be sorted by most specialized type first:
1. if all variables are of the same type, order by least number of variables
2. if the variables are of mixed types, order by ratio

some examples:
![Image](https://github.com/user-attachments/assets/88cbed40-aa6e-48db-b741-69eb71206eb2)

![Image](https://github.com/user-attachments/assets/e8d00901-a5e0-4d92-8aff-8bb0c4a4cff2)

![Image](https://github.com/user-attachments/assets/f1a33a58-36e7-4f07-b3f3-a14034b1533a)

![Image](https://github.com/user-attachments/assets/67096b05-db3f-4649-b670-cc9b5d7c4658)

![Image](https://github.com/user-attachments/assets/6779f645-82b3-4e0c-9cb8-b3acecbafcf1)

ImpactInt: int => 1
Get Image Size: int, int, int => 3
Image Resize: image, int, int => 2 / 3
Math Expression: int, float => 1 / 2
Logic Boolean: bool, number, int, float => 1 / 4
Load Video: image, int, audio, info => 1 / 4

### Proposed workflow

1. Go to ....
2. Press ....
3. ...

### Additional information

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3206-Feature-Request-sort-node-searchbox-results-by-user-s-own-frequence-of-use-or-most--1bf6d73d365081d78f62dd8449056652) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.