Skip to main content

Powershell: Sort-Object

Sort-Object - Sorts objects by property values.

Alias: sort

PS C:\> get-help Sort-Object

NAME
    Sort-Object

SYNOPSIS
    Sorts objects by property values.


SYNTAX
    Sort-Object [[-Property] ] [-CaseSensitive] [-Culture ] [-Descending] [-InputObject
    ] [-Unique] []


DESCRIPTION
    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 particular property.

Popular posts from this blog

GNU nano Text Editor

nano - Nano's ANOther editor, an enhanced free Pico clone

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

Using Powershell to manage Hyper-V

Common powershell cmdlets to manage Hyper-V.