From 042fd7e973d148363ffd2fbdc3193190e79726de Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Sun, 11 Jan 2026 18:55:27 +0100 Subject: [PATCH] add powershell script to sort the plugin json lists --- sort_plugin_lists.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sort_plugin_lists.ps1 diff --git a/sort_plugin_lists.ps1 b/sort_plugin_lists.ps1 new file mode 100644 index 000000000..18e1bc469 --- /dev/null +++ b/sort_plugin_lists.ps1 @@ -0,0 +1,15 @@ +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) + $content = $content -replace ' {2}', "`t" + [IO.File]::WriteAllText($file, $content) +} + +Sort-Json ".\src\pl.x64.json" +Sort-Json ".\src\pl.x86.json" +Sort-Json ".\src\pl.arm64.json" +