Added Sort Ranking

This commit is contained in:
2025-07-17 19:21:32 +02:00
parent 9b85bfc94a
commit e02ed8538f
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "FTDFluxUtils.h"
#include "DTFluxUtils.h"
#include "DTFluxCoreSubsystem.h"
#include "DTFluxUtilitiesModule.h"
@ -55,3 +55,11 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
}
UE_LOG(logDTFluxUtilities, Error, TEXT("DTFluxCoreSubsystem not available"));
}
void UFTDFluxUtils::SortSplitRankingsByRank(TArray<FDTFluxSplitRanking>& Rankings)
{
Rankings.Sort([](const FDTFluxSplitRanking& A, const FDTFluxSplitRanking& B)
{
return A.Rank < B.Rank;
});
}