Order genres alphabetically
authorJacob Casper <dev@jacobcasper.com>
Sun, 19 Apr 2020 05:04:23 +0000 (00:04 -0500)
committerJacob Casper <dev@jacobcasper.com>
Sun, 19 Apr 2020 05:04:55 +0000 (00:04 -0500)
backend/routes/genre/genre.go

index 0304b64..a3808e0 100644 (file)
@@ -45,7 +45,8 @@ WHERE NAME = lower(?)`,
 
                rows, err := env.Db.Db.Query(`
 SELECT ID, NAME
-FROM GENRE`,
+FROM GENRE
+ORDER BY NAME ASC`,
                )
                if err != nil {
                        http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)