From 8f7a3e38c9491233f719a8c17046ceca13a3fc65 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 22 Nov 2023 16:11:57 +0100 Subject: [PATCH] descending --- update/get_matches.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index fb688bc..851498d 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -120,7 +120,7 @@ foreach ($file in $matchfiles) { 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 Stop-Transcript \ No newline at end of file