summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorMorlinest <morlinest@gmail.com>2017-11-03 04:11:42 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-03 11:11:42 +0800
commit95637e046f4cca1ce6adc0eb7e03548034dedeac (patch)
tree6b1223dc40e1d0b51e9f7a082e51ca951d7e35eb /models/issue_comment.go
parent2e08f230ca015de395a0b0012d9ca7189b6685ba (diff)
downloadgitea-95637e046f4cca1ce6adc0eb7e03548034dedeac.tar.gz
gitea-95637e046f4cca1ce6adc0eb7e03548034dedeac.zip
Fix order of comments (#2835)
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 956fad73e1..f2acd5354f 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -611,6 +611,7 @@ func findComments(e Engine, opts FindCommentsOptions) ([]*Comment, error) {
}
return comments, sess.
Asc("comment.created_unix").
+ Asc("comment.id").
Find(&comments)
}