mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-06-07 22:49:27 +08:00
✨ 分组与服务器降序排序
This commit is contained in:
@@ -2,7 +2,7 @@ const { readGroupList, writeGroupList, readHostList, writeHostList, randomStr }
|
||||
|
||||
async function getGroupList({ res }) {
|
||||
const data = await readGroupList()
|
||||
data?.sort((a, b) => a.index - b.index)
|
||||
data?.sort((a, b) => Number(b.index || 0) - Number(a.index || 0))
|
||||
res.success({ data })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user