Return an entry's categories in display order

An entry's categories came back in whatever order SQLite found them. They're now ordered by position, the same order the library and the category list show.
This commit is contained in:
AntsyLich
2026-09-27 23:10:36 +06:00
parent b74e010bfe
commit ed17ece4e3
@@ -40,7 +40,8 @@ C.flags
FROM categories C
JOIN mangas_categories MC
ON C._id = MC.category_id
WHERE MC.manga_id = :mangaId;
WHERE MC.manga_id = :mangaId
ORDER BY C.sort;
insert:
INSERT INTO categories(name, sort, flags)