mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: tag order
This commit is contained in:
parent
23897b43d0
commit
3b8ccc4fb3
@ -32,6 +32,9 @@ export default function ServerListClient() {
|
|||||||
|
|
||||||
const allTag = result.map((server) => server.tag).filter((tag) => tag);
|
const allTag = result.map((server) => server.tag).filter((tag) => tag);
|
||||||
const uniqueTags = [...new Set(allTag)];
|
const uniqueTags = [...new Set(allTag)];
|
||||||
|
|
||||||
|
uniqueTags.sort((a, b) => a.localeCompare(b));
|
||||||
|
|
||||||
uniqueTags.unshift(defaultTag);
|
uniqueTags.unshift(defaultTag);
|
||||||
|
|
||||||
const sortedServers = result.sort((a, b) => {
|
const sortedServers = result.sort((a, b) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user