Descending order for comments in admin

This commit is contained in:
Jan-Lukas Else 2021-01-23 20:32:42 +01:00
parent 90ecd76492
commit 28070a3e3c
1 changed files with 1 additions and 1 deletions

View File

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