Commit 4d4d8c41 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Flatpak: also sort findResourceByPackageName results

This way the right one will be shown in the FeaturedModel
parent 2e57488e
......@@ -1129,6 +1129,8 @@ ResultsStream * FlatpakBackend::findResourceByPackageName(const QUrl &url)
if (QString::compare(res->appstreamId(), url.host(), Qt::CaseInsensitive)==0)
resources << res;
}
auto f = [this](AbstractResource* l, AbstractResource* r) { return flatpakResourceLessThan(l,r); };
std::sort(resources.begin(), resources.end(), f);
}
}
return new ResultsStream(QStringLiteral("FlatpakStream"), resources);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment