summaryrefslogtreecommitdiff
path: root/js/treeview.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/treeview.js')
-rw-r--r--js/treeview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/treeview.js b/js/treeview.js
index 937ea6ff..046a9796 100644
--- a/js/treeview.js
+++ b/js/treeview.js
@@ -58,7 +58,7 @@ $(function() {
} else {
treeview_on = false;
$('.post.reply').sort(function(a,b) {
- return parseInt(a.id.replace('reply_', '')) > parseInt(b.id.replace('reply_', ''));
+ return parseInt(a.id.replace('reply_', '')) - parseInt(b.id.replace('reply_', ''));
}).each(function () {
var post = $(this);
var br = post.next();