Compare commits
1 Commits
1529dcca8f
...
8e5d77abe4
Author | SHA1 | Date |
---|---|---|
baz | 8e5d77abe4 |
|
@ -1,4 +1,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
config.json
|
config.json
|
||||||
.sqlite
|
*.sqlite
|
||||||
|
|
|
@ -30,6 +30,7 @@ module.exports = {
|
||||||
|
|
||||||
if (!games[0]) return interaction.followUp('No game found.');
|
if (!games[0]) return interaction.followUp('No game found.');
|
||||||
|
|
||||||
|
// await games.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count));
|
||||||
await games.sort((a, b) => {
|
await games.sort((a, b) => {
|
||||||
return (a.total_rating_count == null) - (b.total_rating_count == null) || +(a.total_rating_count > b.total_rating_count) || -(a.total_rating_count < b.total_rating_count);
|
return (a.total_rating_count == null) - (b.total_rating_count == null) || +(a.total_rating_count > b.total_rating_count) || -(a.total_rating_count < b.total_rating_count);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue