Sort by ascending
This commit is contained in:
parent
756f1aa161
commit
f51c5a78ea
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue