fix: consistent sorting in optimized views
This commit is contained in:
parent
1bdb4da519
commit
e39bd90911
7 changed files with 25 additions and 20 deletions
|
@ -18,7 +18,8 @@ SELECT
|
|||
a.genres = g.id) AS artists,
|
||||
(
|
||||
SELECT
|
||||
json_agg(json_build_object('title', b.title, 'author', b.author, 'url', b.slug))
|
||||
json_agg(json_build_object('title', b.title, 'author', b.author, 'url', b.slug)
|
||||
ORDER BY b.title ASC)
|
||||
FROM
|
||||
books b
|
||||
JOIN genres_books gb ON gb.books_id = b.id
|
||||
|
|
Reference in a new issue