I'm definitely going to forget this otherwise.
This commit is contained in:
parent
6cf0348067
commit
59a06a7f21
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue