projects
/
brackets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59357fd
)
Order genres alphabetically
author
Jacob Casper
<dev@jacobcasper.com>
Sun, 19 Apr 2020 05:04:23 +0000
(
00:04
-0500)
committer
Jacob Casper
<dev@jacobcasper.com>
Sun, 19 Apr 2020 05:04:55 +0000
(
00:04
-0500)
backend/routes/genre/genre.go
patch
|
blob
|
blame
|
history
diff --git
a/backend/routes/genre/genre.go
b/backend/routes/genre/genre.go
index
0304b64
..
a3808e0
100644
(file)
--- a/
backend/routes/genre/genre.go
+++ b/
backend/routes/genre/genre.go
@@
-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)