feat: sort groups
This commit is contained in:
parent
eddf10e740
commit
1e2e6ca8a6
@ -21,11 +21,13 @@ const ProxyPage = () => {
|
|||||||
Proxy Groups
|
Proxy Groups
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
{groups.length > 0 && (
|
||||||
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
|
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
|
||||||
{groups.map((group) => (
|
{groups.map((group) => (
|
||||||
<ProxyGroup key={group.name} group={group} />
|
<ProxyGroup key={group.name} group={group} />
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -34,6 +34,8 @@ export async function getProxyInfo() {
|
|||||||
each.all = each.all?.map((item) => results[item]).filter((e) => e);
|
each.all = each.all?.map((item) => results[item]).filter((e) => e);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
groups.sort((a, b) => b.name.localeCompare(a.name));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
global,
|
global,
|
||||||
groups,
|
groups,
|
||||||
|
Loading…
Reference in New Issue
Block a user