Fix list not being sorted #320

Merged
Vylpes merged 1 commit from feature/260-baltop-command-2 into develop 2024-07-26 18:29:57 +01:00
Showing only changes of commit 6996563561 - Show all commits

View file

@ -16,7 +16,8 @@ export default class AllBalance extends Command {
public override async execute(interaction: CommandInteraction) {
const users = await User.FetchAll(User);
const filteredUsers = users.filter(x => x.Currency > 0);
const filteredUsers = users.filter(x => x.Currency > 0)
.sort((a, b) => b.Currency - a.Currency);
const embed = new EmbedBuilder()
.setColor(EmbedColours.Ok)