Add message of Excel file created in b_manage

This commit is contained in:
2024-03-15 19:54:03 +01:00
parent 3691363b8e
commit 38978aa7b7
4 changed files with 27 additions and 14 deletions

View File

@@ -48,6 +48,8 @@ namespace platform {
}
void ResultsManager::sortDate()
{
if (empty())
return;
sort(files.begin(), files.end(), [](const Result& a, const Result& b) {
if (a.getDate() == b.getDate()) {
return a.getModel() < b.getModel();
@@ -57,6 +59,8 @@ namespace platform {
}
void ResultsManager::sortModel()
{
if (empty())
return;
sort(files.begin(), files.end(), [](const Result& a, const Result& b) {
if (a.getModel() == b.getModel()) {
return a.getDate() > b.getDate();
@@ -66,12 +70,16 @@ namespace platform {
}
void ResultsManager::sortDuration()
{
if (empty())
return;
sort(files.begin(), files.end(), [](const Result& a, const Result& b) {
return a.getDuration() > b.getDuration();
});
}
void ResultsManager::sortScore()
{
if (files.empty())
return;
sort(files.begin(), files.end(), [](const Result& a, const Result& b) {
if (a.getScore() == b.getScore()) {
return a.getDate() > b.getDate();