Modified Function Sort Split Ranking

This commit is contained in:
2025-07-18 01:10:00 +02:00
parent e02ed8538f
commit 609f623737
5 changed files with 111 additions and 10 deletions

View File

@ -56,10 +56,11 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
UE_LOG(logDTFluxUtilities, Error, TEXT("DTFluxCoreSubsystem not available"));
}
void UFTDFluxUtils::SortSplitRankingsByRank(TArray<FDTFluxSplitRanking>& Rankings)
void UFTDFluxUtils::SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& Rankings, TArray<FDTFluxSplitSensorInfo>& OutRankings)
{
Rankings.Sort([](const FDTFluxSplitRanking& A, const FDTFluxSplitRanking& B)
{
return A.Rank < B.Rank;
});
OutRankings = Rankings;
}

View File

@ -71,7 +71,7 @@ public:
static void GetFullName(const int Bib, FText& OutFullName);
UFUNCTION(BlueprintCallable, Category="DTFlux|Utils")
static void SortSplitRankingsByRank(TArray<FDTFluxSplitRanking>& Rankings);
static void SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& Rankings, TArray<FDTFluxSplitSensorInfo>& OutRankings);
};