Skip to content
Snippets Groups Projects
Commit 4b0308ad authored by HJ's avatar HJ :fire:
Browse files

fix #1037 chrome sorting didn't like 0, other sorter was just outright broken

parent 9d45db95
No related branches found
No related tags found
3 merge requests!1386Improve 3 column layout experiment,!1328rc 2.2.3 to MASTER,!1321fix #1037 chrome sorting didn't like 0, other sorter was just outright broken
Pipeline #33902 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment