diff options
author | Morlinest <morlinest@gmail.com> | 2017-11-03 04:11:42 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-11-03 11:11:42 +0800 |
commit | 95637e046f4cca1ce6adc0eb7e03548034dedeac (patch) | |
tree | 6b1223dc40e1d0b51e9f7a082e51ca951d7e35eb | |
parent | 2e08f230ca015de395a0b0012d9ca7189b6685ba (diff) | |
download | gitea-95637e046f4cca1ce6adc0eb7e03548034dedeac.tar.gz gitea-95637e046f4cca1ce6adc0eb7e03548034dedeac.zip |
Fix order of comments (#2835)
-rw-r--r-- | models/issue_comment.go | 1 |
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) } |