Insert reply at correct position.
[Sone.git] / src / main / resources / static / javascript / sone.js
index a860e5a..936ca57 100644 (file)
@@ -634,7 +634,7 @@ function loadNewReply(replyId) {
                                });
                                newReply = $(data.reply.html).addClass("hidden");
                                if (firstNewerReply != null) {
-                                       newReply.insertAfter(firstNewerReply);
+                                       newReply.insertBefore(firstNewerReply);
                                } else {
                                        if ($(this).find(".replies .create-reply")) {
                                                $(this).find(".replies .create-reply").before(newReply);