From 28070a3e3cc642458fbf41bc0a817575cd36aee8 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sat, 23 Jan 2021 20:32:42 +0100 Subject: [PATCH] Descending order for comments in admin --- comments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comments.go b/comments.go index 182243c..5c39105 100644 --- a/comments.go +++ b/comments.go @@ -120,7 +120,7 @@ func commentsAdmin(w http.ResponseWriter, r *http.Request) { func getComments() ([]*comment, error) { comments := []*comment{} - rows, err := appDbQuery("select id, target, name, website, comment from comments") + rows, err := appDbQuery("select id, target, name, website, comment from comments order by id desc") if err != nil { return nil, err }