From 0e936d8b0dfaa0cd4575beec9f8c2d57d1ded0db Mon Sep 17 00:00:00 2001 From: Morlinest Date: Fri, 3 Nov 2017 04:11:42 +0100 Subject: [PATCH] Fix order of comments (#2835) --- models/issue_comment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/issue_comment.go b/models/issue_comment.go index 753e79b3d3581..4dbc8c0db59ae 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -613,6 +613,7 @@ func findComments(e Engine, opts FindCommentsOptions) ([]*Comment, error) { } return comments, sess. Asc("comment.created_unix"). + Asc("comment.id"). Find(&comments) }