diff --git a/services/xtrends.ts b/services/xtrends.ts index 81356c805..b538bf687 100644 --- a/services/xtrends.ts +++ b/services/xtrends.ts @@ -76,7 +76,11 @@ const getXTrends = async (): Promise => { : ("UP" as const), }; }) - .sort((a, b) => b.count - a.count); + .sort((a, b) => { + if (a.count !== b.count) return b.count - a.count; + + return b.averageXp - a.averageXp; + }); return acc; },