]> source.dussan.org Git - gitea.git/commitdiff
Fix order of comments (#2835)
authorMorlinest <morlinest@gmail.com>
Fri, 3 Nov 2017 03:11:42 +0000 (04:11 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Fri, 3 Nov 2017 03:11:42 +0000 (11:11 +0800)
models/issue_comment.go

index 956fad73e1777fa7da4ba359dfcc4c67a334a75e..f2acd5354f82f0c3246a318e8a323af265b021b6 100644 (file)
@@ -611,6 +611,7 @@ func findComments(e Engine, opts FindCommentsOptions) ([]*Comment, error) {
        }
        return comments, sess.
                Asc("comment.created_unix").
+               Asc("comment.id").
                Find(&comments)
 }