mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 14:15:12 +00:00
[Client] カスタム絵文字サジェストの結果をアルファベット順にソートするように
This commit is contained in:
parent
b195fd8145
commit
1642fbec31
1 changed files with 5 additions and 1 deletions
|
@ -216,7 +216,11 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
} else if (this.type == 'emoji') {
|
} else if (this.type == 'emoji') {
|
||||||
if (this.q == null || this.q == '') {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue