Add new episodes to queue in ascending chronological order

Fixes #32
This commit is contained in:
Bart De Vries 2022-05-24 22:27:20 +02:00
parent 500dc7fc9b
commit 2b363b6cec

View File

@ -71,7 +71,7 @@ DataManager::DataManager()
// Check for "new" entries
if (SettingsManager::self()->autoQueue()) {
query.prepare(QStringLiteral("SELECT id FROM Entries WHERE feed=:feed AND new=:new;"));
query.prepare(QStringLiteral("SELECT id FROM Entries WHERE feed=:feed AND new=:new ORDER BY updated ASC;"));
query.bindValue(QStringLiteral(":feed"), feedurl);
query.bindValue(QStringLiteral(":new"), true);
Database::instance().execute(query);