From 59a06a7f219b372694b8fbe7a526ffe579543044 Mon Sep 17 00:00:00 2001
From: flashwave <me@flash.moe>
Date: Tue, 18 Feb 2025 02:29:03 +0000
Subject: [PATCH] I'm definitely going to forget this otherwise.

---
 assets/misuzu.js/comments/listing.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
         },