mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 22:27:44 +02:00
Sort Alphabetical Credit right
This commit is contained in:
@@ -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
|
const mapped = credit
|
||||||
.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => {
|
.map(c => `- [${c.name}](${c.url})\n${c.commands.map(cmd => {
|
||||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||||
|
|||||||
Reference in New Issue
Block a user