sort whois langs alphabetical order

merge-requests/12/head
Matthew 2020-04-25 00:39:47 -04:00 committed by Bsian
parent 612b48dfa0
commit bf9ab41fcc
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export default class Whois extends Command {
const account = await this.client.db.member.findOne({ userID: member.id });
if (account?.additional?.langs.length > 0) {
const langs: string[] = [];
for (const lang of account.additional.langs) {
for (const lang of account.additional.langs.sort((a, b) => a.localeCompare(b))) {
switch (lang) {
case 'asm':
langs.push('<:AssemblyLanguage:703448714248716442> Assembly Language');