diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-01-04 19:44:19 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-01-04 19:44:19 +0000 |
| commit | bc23266d7087dca0653097fe48ae9eba3f6f55b8 (patch) | |
| tree | 297a3ab6eb3f92e3b19bbdb1a5472b4412970687 /src | |
| parent | 9d45db959f5c712a317ba9cfce317d8a55b9feb5 (diff) | |
| parent | 4b0308ad1fe148f7349ff82a89094c0abf979564 (diff) | |
Merge branch 'fix-emoji-sort-chrome' into 'develop'
fix #1037 chrome sorting didn't like 0, other sorter was just outright broken
Closes #1037
See merge request pleroma/pleroma-fe!1321
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/instance.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/instance.js b/src/modules/instance.js index 5f7bf0ec..411b1caa 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -127,7 +127,7 @@ const instance = { imageUrl: false, replacement: values[key] } - }).sort((a, b) => a.displayText - b.displayText) + }).sort((a, b) => a.name > b.name ? 1 : -1) commit('setInstanceOption', { name: 'emoji', value: emoji }) } else { throw (res) @@ -154,7 +154,7 @@ const instance = { } // Technically could use tags but those are kinda useless right now, // should have been "pack" field, that would be more useful - }).sort((a, b) => a.displayText.toLowerCase() > b.displayText.toLowerCase() ? 1 : 0) + }).sort((a, b) => a.displayText.toLowerCase() > b.displayText.toLowerCase() ? 1 : -1) commit('setInstanceOption', { name: 'customEmoji', value: emoji }) } else { throw (res) |
