From 8f106694e031a2b1db586653c94f8820b6d28985 Mon Sep 17 00:00:00 2001 From: Devin Date: Tue, 27 Jan 2026 01:29:44 -0600 Subject: [PATCH] Update sort_plugin_lists.ps1 --- sort_plugin_lists.ps1 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sort_plugin_lists.ps1 b/sort_plugin_lists.ps1 index 18e1bc469..a0c8e8e34 100644 --- a/sort_plugin_lists.ps1 +++ b/sort_plugin_lists.ps1 @@ -1,10 +1,8 @@ function Sort-Json($file) { - $a = Get-Content $file | ConvertFrom-Json - $a.'npp-plugins' = $a.'npp-plugins' | sort -Property 'display-name' - $a | ConvertTo-Json > $file - #replace 2 spaces by tab - $content = [IO.File]::ReadAllText($file) + $a = Get-Content $file -Raw | ConvertFrom-Json + $a.'npp-plugins' = $a.'npp-plugins' | Sort-Object -Property 'display-name' + $content = $a | ConvertTo-Json -Depth 10 $content = $content -replace ' {2}', "`t" [IO.File]::WriteAllText($file, $content) } @@ -12,4 +10,3 @@ function Sort-Json($file) Sort-Json ".\src\pl.x64.json" Sort-Json ".\src\pl.x86.json" Sort-Json ".\src\pl.arm64.json" -