1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 22:38:30 +09:00

[Client] カスタム絵文字サジェストの結果をアルファベット順にソートするように

This commit is contained in:
syuilo 2018-11-06 08:02:19 +09:00
parent b195fd8145
commit 1642fbec31
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -216,7 +216,11 @@ export default Vue.extend({
}
} else if (this.type == 'emoji') {
if (this.q == null || this.q == '') {
this.emojis = this.emojiDb.filter(x => x.isCustomEmoji && !x.aliasOf);
this.emojis = this.emojiDb.filter(x => x.isCustomEmoji && !x.aliasOf).sort((a, b) => {
var textA = a.name.toUpperCase();
var textB = b.name.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
return;
}