Sort Alphabetical Credit right

This commit is contained in:
Dragon Fire
2020-01-15 11:55:41 -05:00
parent fd589d0177
commit 5f0551d574
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = class GenerateCreditCommand extends Command {
});
}
}
credit = credit.sort((a, b) => a.name > b.name ? 1 : -1);
credit = credit.sort((a, b) => a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1);
const mapped = credit
.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => {
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;