Sort-Object

Sorts objects by property values. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/sort-object.

Get-ChildItem | Sort-Object

Get-ChildItem | Sort-Object -Descending

"a", "b", "a" | Sort-Object -Unique

Get-ChildItem | Sort-Object -Property Length

Get-Process | Sort-Object -Property WS