aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorlinest2017-11-03 12:16:26 +0100
committerLauris BH2017-11-03 13:16:26 +0200
commitde7a76a9957edb6b97ed0b94ffd909106659f54a (patch)
treef06b319fc056d530483ce3100ca978cf83a7d3ee
parent357d5a5a3d3b95ccbf01c8b7118d5f350509cf8f (diff)
Fix order of comments (#2835) (#2839)
-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 753e79b3d..4dbc8c0db 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)
}