From 2e4171cced423d3b53912a8165fbf7f53ea2c514 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 15 Jan 2026 22:33:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E8=B0=83=E6=95=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/Sqlite/modules/userAchi.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/Sqlite/modules/userAchi.ts b/src/plugins/Sqlite/modules/userAchi.ts index 9d4567f1..9bc8d991 100644 --- a/src/plugins/Sqlite/modules/userAchi.ts +++ b/src/plugins/Sqlite/modules/userAchi.ts @@ -1,6 +1,6 @@ /** * 用户成就模块 - * @since Beta v0.9.0 + * @since Beta v0.9.2 */ import { UiafAchiStatEnum } from "@enum/uiaf.js"; @@ -125,7 +125,7 @@ async function getAchi( /** * 获取成就数据 - * @since Beta v0.6.0 + * @since Beta v0.9.2 * @param uid - 存档 UID * @param series - 成就系列ID * @returns 成就数据 @@ -149,7 +149,11 @@ async function getAchievements( res.push(achievement); } res.sort( - (a, b) => a.isCompleted.toString().localeCompare(b.isCompleted.toString()) || a.order - b.order, + (a, b) => + Number(a.isCompleted) - Number(b.isCompleted) || + b.version.localeCompare(a.version) || + b.series - a.series || + b.order - a.order, ); return res; }