Issue 489 · Week of May 22, 2026
Feed Jobs Search Platform About Donate
← Back to feed / //dotnet

Using Natural Sort in PowerShell

Read full article Discuss
PowerShell has no built-in natural sort feature, but you can use the Sort-Object cmdlet with a custom script block to create one. A natural sort arranges strings in a way that feels more intuitive, like ordering file names with numbers logically.