Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Sort-Object

Sort-Object - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Sorts objects by property values.

Sort-Object [[-Property] <Object[]>] [-CaseSensitive] [-Culture <String>] [-Descending] [-InputObject <PSObject>] [-Uni
que] [<CommonParameters>]

The Sort-Object cmdlet sorts objects in ascending or descending order based on the values of properties of the object.

You can specify a single property or multiple properties (for a multi-key sort), and you can select a case-sensitive or
 case-insensitive sort. You can also direct Sort-Object to display only the objects with a unique value for a particula
r property.