If you want to do it in your CI/CD pipeline you can do the following:
# Install resx sorter tool
dotnet tool install keboo.resxsorter --global
# Use the tool with all resx files
Get-ChildItem -Path . -Filter "*.resx" -Recurse | ForEach-Object {
ResxSorter -i $_.FullName
}