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

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'