fix proxies order

This commit is contained in:
pompurin404 2024-08-21 10:16:41 +08:00
parent 75d064f4e1
commit b18dbbf770
No known key found for this signature in database

View File

@ -37,7 +37,7 @@ const Proxies: React.FC = () => {
const allProxies: (IMihomoProxy | IMihomoGroup)[] = []
groups.forEach((group, index) => {
if (isOpen[index]) {
let groupProxies = group.all
let groupProxies = [...group.all]
if (proxyDisplayOrder === 'delay') {
groupProxies = groupProxies.sort((a, b) => {
if (a.history.length === 0) return -1