[GH-ISSUE #4348] Feature Request: Drag-and-drop inbound sorting for subscription node order #2961

Closed
opened 2026-10-31 20:29:11 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @airenruni01 on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4348

This request is related to the node order in the subscription generated by 3X-UI.

Currently, the node order in clients such as v2rayN follows the order provided by the 3X-UI subscription link.

The subscription link itself seems to generate nodes according to the inbound order shown in the 3X-UI panel.

For example, my 3X-UI inbound list is ordered like this:

  1. USA - TCP Reality
  2. Singapore - TCP Reality
  3. Japan - TCP Reality
  4. Korea - TCP Reality
  5. Japan - UDP / Hysteria2
  6. USA - UDP / Hysteria2
Image Image Image Image

After I import or refresh the subscription in v2rayN, v2rayN shows the nodes in the same order as the 3X-UI panel.

So the problem is not v2rayN sorting. v2rayN is only displaying the order from the 3X-UI subscription.

The problem is that 3X-UI currently does not provide an easy way to reorder the inbound list in the panel.

If I want Japan to appear as the first node in the subscription, I cannot simply drag the Japan inbound to the first row in the 3X-UI panel. After every subscription refresh, the client still follows the original 3X-UI panel order.

Describe the solution you'd like

Please add drag-and-drop sorting support directly in the 3X-UI inbound list.

I hope users can reorder inbounds inside the 3X-UI panel by holding an inbound row with the mouse and dragging it up or down.

For example, in the 3X-UI panel:

Before:

  1. USA - TCP Reality
  2. Singapore - TCP Reality
  3. Japan - TCP Reality
  4. Korea - TCP Reality

If I hold the Japan row with my mouse and drag it to the top, the panel order should become:

  1. Japan - TCP Reality
  2. USA - TCP Reality
  3. Singapore - TCP Reality
  4. Korea - TCP Reality

Then the 3X-UI subscription link should also generate nodes in this new order.

After refreshing the subscription in v2rayN, v2rayNG, Shadowrocket, or other clients, the node order should follow the custom order configured in the 3X-UI panel.

Expected behavior:

  • Users can drag inbound rows up or down directly inside the 3X-UI panel
  • The new inbound order is saved permanently
  • The subscription link exports nodes according to this custom panel order
  • Clients display nodes according to the 3X-UI subscription order after refresh

This feature is useful because the subscription order is controlled by 3X-UI, not by the client.

If 3X-UI supports drag-and-drop sorting, users can manage node order much more easily, especially when using multiple regions and protocols, such as USA, Singapore, Japan, Korea, TCP Reality, and UDP / Hysteria2 nodes.

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.
Originally created by @airenruni01 on GitHub (May 13, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4348 ### Is your feature request related to a problem? This request is related to the node order in the subscription generated by 3X-UI. Currently, the node order in clients such as v2rayN follows the order provided by the 3X-UI subscription link. The subscription link itself seems to generate nodes according to the inbound order shown in the 3X-UI panel. For example, my 3X-UI inbound list is ordered like this: 1. USA - TCP Reality 2. Singapore - TCP Reality 3. Japan - TCP Reality 4. Korea - TCP Reality 5. Japan - UDP / Hysteria2 6. USA - UDP / Hysteria2 <img width="1095" height="506" alt="Image" src="https://github.com/user-attachments/assets/1e60d28e-0430-4769-8813-23c1003dbaee" /> <img width="1095" height="506" alt="Image" src="https://github.com/user-attachments/assets/ad3213d2-6171-4821-81a1-ce090250e190" /> <img width="1095" height="506" alt="Image" src="https://github.com/user-attachments/assets/7135947f-f7b4-404a-89ac-2b6b0ac5abc9" /> <img width="889" height="603" alt="Image" src="https://github.com/user-attachments/assets/671ce746-6aaf-464a-a3e3-b84df340f235" /> After I import or refresh the subscription in v2rayN, v2rayN shows the nodes in the same order as the 3X-UI panel. So the problem is not v2rayN sorting. v2rayN is only displaying the order from the 3X-UI subscription. The problem is that 3X-UI currently does not provide an easy way to reorder the inbound list in the panel. If I want Japan to appear as the first node in the subscription, I cannot simply drag the Japan inbound to the first row in the 3X-UI panel. After every subscription refresh, the client still follows the original 3X-UI panel order. ### Describe the solution you'd like Please add drag-and-drop sorting support directly in the 3X-UI inbound list. I hope users can reorder inbounds inside the 3X-UI panel by holding an inbound row with the mouse and dragging it up or down. For example, in the 3X-UI panel: Before: 1. USA - TCP Reality 2. Singapore - TCP Reality 3. Japan - TCP Reality 4. Korea - TCP Reality If I hold the Japan row with my mouse and drag it to the top, the panel order should become: 1. Japan - TCP Reality 2. USA - TCP Reality 3. Singapore - TCP Reality 4. Korea - TCP Reality Then the 3X-UI subscription link should also generate nodes in this new order. After refreshing the subscription in v2rayN, v2rayNG, Shadowrocket, or other clients, the node order should follow the custom order configured in the 3X-UI panel. Expected behavior: - Users can drag inbound rows up or down directly inside the 3X-UI panel - The new inbound order is saved permanently - The subscription link exports nodes according to this custom panel order - Clients display nodes according to the 3X-UI subscription order after refresh This feature is useful because the subscription order is controlled by 3X-UI, not by the client. If 3X-UI supports drag-and-drop sorting, users can manage node order much more easily, especially when using multiple regions and protocols, such as USA, Singapore, Japan, Korea, TCP Reality, and UDP / Hysteria2 nodes. ### Describe alternatives you've considered _No response_ ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:29:11 +07:00
Author
Owner

@wah2233 commented on GitHub (May 13, 2026):

How can I run everything under port 443? I have different servers, but using the same port still causes confusion

<!-- gh-comment-id:4442649709 --> @wah2233 commented on GitHub (May 13, 2026): How can I run everything under port 443? I have different servers, but using the same port still causes confusion
Author
Owner

@wah2233 commented on GitHub (May 13, 2026):

Since the main 3x-ui inbound is already using port 443, any remote server with a inbound on port 443 cannot be added to the main panel; the system will refuse. I have three 3x-ui instances, and each server must use a unique port without any overlaps to ensure they can all be integrated into the main panel."

如果main 3xui的inbound已經用了443, 如果遠程server同樣有inbound用443, 他不會自動加到main panel上, 如果用遠程方法加新 inbound 而用 443 port, 系統會拒絕的, 我有三個3xui, 三個都server都要用不同的port, 不能有重複, 這樣才能夠全部加到main panel

<!-- gh-comment-id:4442989095 --> @wah2233 commented on GitHub (May 13, 2026): Since the main 3x-ui inbound is already using port 443, any remote server with a inbound on port 443 cannot be added to the main panel; the system will refuse. I have three 3x-ui instances, and each server must use a unique port without any overlaps to ensure they can all be integrated into the main panel." 如果main 3xui的inbound已經用了443, 如果遠程server同樣有inbound用443, 他不會自動加到main panel上, 如果用遠程方法加新 inbound 而用 443 port, 系統會拒絕的, 我有三個3xui, 三個都server都要用不同的port, 不能有重複, 這樣才能夠全部加到main panel
Author
Owner

@BlackRockSoul commented on GitHub (May 13, 2026):

I can confirm that it doesn't work in 3.0.1.

The 3x-ui console spams the UNIQUE constraint failed: inbounds.tag error.
The inbound.tag field is based on the listen (if exists) and tag fields of an external inbound.
Therefore, the inbound cannot be created, as the tag is already in use by an internal inbound (i.e. inbound-443).

This only seems to occur when connecting an external node with an existing 443 (or any already used port) inbound.

There's an MR for that #4299

<!-- gh-comment-id:4444267229 --> @BlackRockSoul commented on GitHub (May 13, 2026): I can confirm that it doesn't work in `3.0.1`. The 3x-ui console spams the `UNIQUE constraint failed: inbounds.tag` error. The `inbound.tag` field is based on the `listen` _(if exists)_ and `tag` fields of an external inbound. Therefore, the inbound cannot be created, as the tag is already in use by an internal inbound _(i.e. `inbound-443`)_. This only seems to occur when connecting an external node with an existing 443 _(or any already used port)_ inbound. There's an MR for that #4299
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2961
No description provided.