Sort-Object — Basic UsageIT technician command center
PowerShell · Windows Administration

Sort-Object — Basic Usage

Use Sort-Object for a standard administrative task.

Copy-ready commandSort-Object — Basic Usage
Get-Process | Sort-Object CPU -Descending

Requirements and permissions

Requirements
Windows PowerShell 5.1 or PowerShell 7
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use Sort-Object for a standard administrative task.

Get-Process | Sort-Object CPU -Descending

Original command

Sort objects by a property.

Get-Process | Sort-Object CPU -Descending

Common errors

Command not found

Confirm Windows PowerShell 5.1 or PowerShell 7 is installed and available in your current shell.