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 0304b644f70ec920b9ed1c7e438e1f523af75c6e..a3808e003436c70016630ce0f97f5f6f85cd9f15 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)