fix: tag order

This commit is contained in:
仓鼠 2024-10-02 18:20:39 +08:00 committed by GitHub
parent 23897b43d0
commit 3b8ccc4fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,9 @@ export default function ServerListClient() {
const allTag = result.map((server) => server.tag).filter((tag) => tag);
const uniqueTags = [...new Set(allTag)];
uniqueTags.sort((a, b) => a.localeCompare(b));
uniqueTags.unshift(defaultTag);
const sortedServers = result.sort((a, b) => {