mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-09-15 15:43:05 -04:00
update java sorting by taking into consideration release time
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
2 files changed
+7
-6
No files matched your search
@@ -83,6 +83,13 @@ bool Metadata::operator<(const Metadata& rhs)
|
||||
if (id > rhs.version) {
|
||||
return false;
|
||||
}
|
||||
auto date = releaseTime;
|
||||
if (date < rhs.releaseTime) {
|
||||
return true;
|
||||
}
|
||||
if (date > rhs.releaseTime) {
|
||||
return false;
|
||||
}
|
||||
return StringUtils::naturalCompare(m_name, rhs.m_name, Qt::CaseInsensitive) < 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user