Сортировка не в ту сторону =)

This commit is contained in:
JonnyBro 2023-02-12 14:44:55 +05:00
parent ce79517ed8
commit c9779214ba

View file

@ -151,7 +151,7 @@ function generateBoostersEmbeds(interaction, boosters) {
let k = 10; let k = 10;
for (let i = 0; i < boosters.size; i += 10) { for (let i = 0; i < boosters.size; i += 10) {
const current = boosters.sort((a, b) => b.premiumSinceTimestamp - a.premiumSinceTimestamp).map(g => g).slice(i, k); const current = boosters.sort((a, b) => a.premiumSinceTimestamp - b.premiumSinceTimestamp).map(g => g).slice(i, k);
let j = i; let j = i;
k += 10; k += 10;