From f51c5a78ea4b4da9635e4e5576a7049a293b5d9f Mon Sep 17 00:00:00 2001 From: Asara Date: Sun, 26 Jan 2020 01:26:56 -0500 Subject: [PATCH] Sort by ascending --- packages/blog/comments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blog/comments.go b/packages/blog/comments.go index 95c8f37..5ce629b 100644 --- a/packages/blog/comments.go +++ b/packages/blog/comments.go @@ -108,7 +108,7 @@ func getCommentsByParentId(w http.ResponseWriter, r *http.Request) { SELECT id, author, content, time_published, modified, last_modified FROM comments WHERE parent = $1 - ORDER BY id DESC + ORDER BY id ASC ` rows, err := DB.Query(search, post_id) if err != nil {