I'm definitely going to forget this otherwise.

This commit is contained in:
flash 2025-02-18 02:29:03 +00:00
parent 6cf0348067
commit 59a06a7f21

View file

@ -434,7 +434,7 @@ const MszCommentsListing = function(options) {
reorder: () => { reorder: () => {
// this feels yucky but it works // this feels yucky but it works
const items = Array.from(element.children).sort((a, b) => parseInt(b.dataset.commentOrder - a.dataset.commentOrder)); const items = Array.from(element.children).sort((a, b) => parseInt(b.dataset.commentOrder) - parseInt(a.dataset.commentOrder));
for(const item of items) for(const item of items)
element.appendChild(item); element.appendChild(item);
}, },