mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
parent
ff248d6270
commit
5d04711ed8
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user