Forrest logo
back to context overview

sort-object

List of commands for sort-object:

  • sort-object:tldr:04f26 sort-object: Sort items removing duplicates.
    $ "a", "b", "a" | Sort-Object -Unique
    try on your machine
    explain this command
  • sort-object:tldr:6b1ef sort-object: Sort the current directory by file length.
    $ Get-ChildItem | Sort-Object -Property Length
    try on your machine
    explain this command
  • sort-object:tldr:ceb4a sort-object: Sort processes with the highest memory usage based on their working set (WS) size.
    $ Get-Process | Sort-Object -Property WS
    try on your machine
    explain this command
  • sort-object:tldr:d53c6 sort-object: Sort the current directory by name descending.
    $ Get-ChildItem | Sort-Object -Descending
    try on your machine
    explain this command
  • sort-object:tldr:e45b9 sort-object: Sort the current directory by name.
    $ Get-ChildItem | Sort-Object
    try on your machine
    explain this command
back to context overview