From 15f9905dcfb83584a0a2c76977ae4abe46c7ff69 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 18 Jul 2024 08:53:11 +0200 Subject: [PATCH] randomize order last stats --- update/matchparser.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 34e4520..2816bf2 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -214,7 +214,12 @@ function Get-MatchStatsPlayer { change = $change } } - return $MatchStatsPlayer | Sort-Object winratio -Descending + $MatchStatsPlayer | ForEach-Object { + $_ | Add-Member -NotePropertyName RandomKey -NotePropertyValue (Get-Random) -PassThru + } | Sort-Object -Property RandomKey | Select-Object -Property * -ExcludeProperty RandomKey #randomize the order + + + return $MatchStatsPlayer } -- 2.49.1