Skip to content
Snippets Groups Projects
Commit 307886ad authored by Trym Grande's avatar Trym Grande
Browse files

order by year bug fix

parent a0893049
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ function getSearchQuery(title: string, genre: string, order: boolean): string { ...@@ -105,7 +105,7 @@ function getSearchQuery(title: string, genre: string, order: boolean): string {
query = query + ' genre LIKE "%' + genre + '%"' query = query + ' genre LIKE "%' + genre + '%"'
} }
if (order) { if (order) {
query = query + ' ORDER BY "year" DESC' query = query + ' ORDER BY year DESC'
} }
console.log(query) console.log(query)
return query return query
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment