mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-22 02:55:52 -05:00
@@ -76,7 +76,11 @@ const getXTrends = async (): Promise<XTrends> => {
|
||||
: ("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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user