CommandStores not showing commands in order

I just finished the rewrite of a bot, tested the help command and looks like the commands are not showing in order, just tested on the Development bot and they are in order, this doesn't cause any issues but I want them to show correctly, any idea? Could be a host issue?
Solution:
this.container.stores.get("commands").sort((a, b) => a.name.localeCompare(b.name))
this.container.stores.get("commands").sort((a, b) => a.name.localeCompare(b.name))
...
Jump to solution
7 Replies
Lioness100
Lioness100•9mo ago
What is the order you're looking for? What method are you using to see the order in both bots?
-Carlos👑
-Carlos👑•9mo ago
this.container.stores.get("commands");
Lioness100
Lioness100•9mo ago
What order are you looking for (and why does it matter?)
-Carlos👑
-Carlos👑•9mo ago
on the development bot they showed in a alphabetical order basically in the same order they are in vsc I uploaded all the files at once in the host, could this be the reason of this?
Lioness100
Lioness100•9mo ago
Why does it matter? You could sort them manually if you're displaying them through a help command or similar.
Solution
Lioness100
Lioness100•9mo ago
this.container.stores.get("commands").sort((a, b) => a.name.localeCompare(b.name))
this.container.stores.get("commands").sort((a, b) => a.name.localeCompare(b.name))
-Carlos👑
-Carlos👑•9mo ago
Just found it weird that the commands weren't on the correct order