Rewrote the comments system. #1

Merged
flash merged 6 commits from comments-rewrite into trunk 2025-02-20 02:19:33 +00:00
Showing only changes of commit 59a06a7f21 - Show all commits

View file

@ -434,7 +434,7 @@ const MszCommentsListing = function(options) {
reorder: () => {
// 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)
element.appendChild(item);
},