mirror of https://github.com/jlelse/GoBlog
Descending order for comments in admin
This commit is contained in:
parent
90ecd76492
commit
28070a3e3c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue