fix: consistent sorting in optimized views

This commit is contained in:
Cory Dransfeldt 2024-11-26 09:19:07 -08:00
parent 1bdb4da519
commit e39bd90911
No known key found for this signature in database
7 changed files with 25 additions and 20 deletions

View file

@ -39,7 +39,7 @@ SELECT
(
SELECT
json_agg(json_build_object('title', b.title, 'author', b.author, 'url', b.slug)
ORDER BY b.date_finished DESC)
ORDER BY b.title ASC)
FROM
books_artists ba
LEFT JOIN books b ON ba.books_id = b.id