Sort by ascending

This commit is contained in:
Amarpreet Minhas 2020-01-26 01:26:56 -05:00
parent 756f1aa161
commit f51c5a78ea

View file

@ -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 {