diff --git a/src/views/emojiPacks/components/LocalEmojiPack.vue b/src/views/emojiPacks/components/LocalEmojiPack.vue
index c03ba580..1cf4bdae 100644
--- a/src/views/emojiPacks/components/LocalEmojiPack.vue
+++ b/src/views/emojiPacks/components/LocalEmojiPack.vue
@@ -42,9 +42,9 @@
-
+
-
+
-
+
@@ -52,7 +52,7 @@
-
+
@@ -128,6 +128,11 @@ export default {
this.$store.dispatch('ReloadEmoji')
})
},
+ sortPack(pack) {
+ const orderedFiles = Object.keys(pack.files).sort((a, b) => a.localeCompare(b))
+ .map(key => [key, pack.files[key]])
+ return { ...pack, files: orderedFiles }
+ },
refreshLocalPacks() {
try {
this.$store.dispatch('SetLocalEmojiPacks')