mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 23:34:52 +08:00
PLT-4914 Sort custom emoji on whole name. (#4768)
This commit is contained in:
@@ -94,7 +94,7 @@ class EmojiStore extends EventEmitter {
|
||||
}
|
||||
|
||||
setCustomEmojis(customEmojis) {
|
||||
customEmojis.sort((a, b) => a.name[0].localeCompare(b.name[0]));
|
||||
customEmojis.sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
this.customEmojis = new Map();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user