mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 13:08:33 +08:00
fix: sort proxy during loading, close #221
This commit is contained in:
1 parent
444acc8ef5
commit
c380d6988c
1 file changed
+2
-2
@@ -23,8 +23,8 @@ export default function useSortProxy(
|
||||
const ad = delayManager.getDelay(a.name, groupName);
|
||||
const bd = delayManager.getDelay(b.name, groupName);
|
||||
|
||||
if (ad === -1) return 1;
|
||||
if (bd === -1) return -1;
|
||||
if (ad === -1 || ad === -2) return 1;
|
||||
if (bd === -1 || bd === -2) return -1;
|
||||
|
||||
return ad - bd;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user