diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-06 08:02:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-06 08:02:19 +0900 |
| commit | 1642fbec31972313de6d54b64babde25ab7caea8 (patch) | |
| tree | 7179a6c44702f4ba64c73eac00e1687f760ca4d7 /src | |
| parent | :art: (diff) | |
| download | sharkey-1642fbec31972313de6d54b64babde25ab7caea8.tar.gz sharkey-1642fbec31972313de6d54b64babde25ab7caea8.tar.bz2 sharkey-1642fbec31972313de6d54b64babde25ab7caea8.zip | |
[Client] カスタム絵文字サジェストの結果をアルファベット順にソートするように
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/autocomplete.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/autocomplete.vue b/src/client/app/common/views/components/autocomplete.vue index 661d340863..064a362bff 100644 --- a/src/client/app/common/views/components/autocomplete.vue +++ b/src/client/app/common/views/components/autocomplete.vue @@ -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; } |