[LYN-2514] Sorting gems in the gem catalog after retrieving all gem infos

Added <operator() for sorting the gems after retrieving the list of all gems.
This commit is contained in:
Benjamin Jillich
2021-06-02 13:29:10 +02:00
parent ede8daaece
commit bcdb541b7c
2 changed files with 7 additions and 0 deletions
@@ -79,4 +79,9 @@ namespace O3DE::ProjectManager
{
return (m_platforms & platform);
}
bool GemInfo::operator<(const GemInfo& gemInfo) const
{
return (m_displayName < gemInfo.m_displayName);
}
} // namespace O3DE::ProjectManager
@@ -61,6 +61,8 @@ namespace O3DE::ProjectManager
bool IsValid() const;
bool operator<(const GemInfo& gemInfo) const;
QString m_path;
QString m_name = "Unknown Gem Name";
QString m_displayName = "Unknown Gem Name";