mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Сортировка не в ту сторону =)
This commit is contained in:
parent
ce79517ed8
commit
c9779214ba
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue