diff --git a/assets/misuzu.js/comments/listing.jsx b/assets/misuzu.js/comments/listing.jsx index 5919d2f3..8e82604f 100644 --- a/assets/misuzu.js/comments/listing.jsx +++ b/assets/misuzu.js/comments/listing.jsx @@ -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); },