Make sure chapter marks show up in the correct order

This commit is contained in:
Bart De Vries 2021-10-07 13:28:47 +02:00
parent b77c3b46af
commit 52f90157ca
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void ChapterModel::load()
void ChapterModel::loadFromDatabase()
{
QSqlQuery query;
query.prepare(QStringLiteral("SELECT * FROM Chapters WHERE id=:id"));
query.prepare(QStringLiteral("SELECT * FROM Chapters WHERE id=:id ORDER BY start ASC;"));
query.bindValue(QStringLiteral(":id"), enclosureId());
Database::instance().execute(query);
while (query.next()) {