CmdID

CmdID / Commands

sort-object

Sort objects by property values. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from tldr-pages, CC BY 4.0

Sort objects by property values. Note: This command can only be used through PowerShell.

Sort the current directory by name

Get-ChildItem | Sort-ObjectIdentify

Sort the current directory by name descending

Get-ChildItem | Sort-Object -DescendingIdentify

Sort items removing duplicates

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

Sort the current directory by file length

Get-ChildItem | Sort-Object -Property LengthIdentify

Sort processes with the highest memory usage based on their working set (WS) size

Get-Process | Sort-Object -Property WSIdentify