DBManager: ORDER BY parameter added to getRecord(s) (#770)

-> All instances are now sorted in ascending order using the instance ID
-> The web interface gets an incorrect instance order, which causes further problems
This commit is contained in:
SJunkies
2020-07-12 11:04:16 +02:00
committed by GitHub
parent 8c188d71d9
commit 9110b3e690
3 changed files with 24 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ public:
inline QVector<QVariantMap> getAllInstances(const bool& justEnabled = false)
{
QVector<QVariantMap> results;
getRecords(results);
getRecords(results, QStringList(), QStringList() << "instance ASC");
if(justEnabled)
{
for (auto it = results.begin(); it != results.end();)