From 75f830457bf81bae44271ab5a5a5d9ce2fd33ecd Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 13 Apr 2024 14:45:12 +0200 Subject: [PATCH] fix(comments): order comments by created timestamp instead of id Partially resolves https://community.vikunja.io/t/trello-import-comments-and-assignments/2174/14 --- pkg/models/task_comments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/task_comments.go b/pkg/models/task_comments.go index 968cc9c1a5..108273208e 100644 --- a/pkg/models/task_comments.go +++ b/pkg/models/task_comments.go @@ -270,7 +270,7 @@ func (tc *TaskComment) ReadAll(s *xorm.Session, auth web.Auth, search string, pa query := s. Where(builder.And(where...)). Join("LEFT", "users", "users.id = task_comments.author_id"). - OrderBy("task_comments.id asc") + OrderBy("task_comments.created asc") if limit > 0 { query = query.Limit(limit, start) }