descending

This commit is contained in:
Lanta 2023-11-22 16:11:57 +01:00
parent be06fb06ca
commit 8f7a3e38c9

View file

@ -120,7 +120,7 @@ foreach ($file in $matchfiles) {
write-output "NEW $matchfiledate" write-output "NEW $matchfiledate"
} }
} }
$player_matches_object | Sort-Object createdAt| convertto-json -Depth 100 | out-file "$scriptroot/../data/cached_matches.json" $player_matches_object | Sort-Object createdAt -Descending | convertto-json -Depth 100 | out-file "$scriptroot/../data/cached_matches.json"
remove-lock remove-lock
Stop-Transcript Stop-Transcript