# Sorting: Sort-Object

Sort-Object puts objects in order by any property, smallest or A first unless you add -Descending, and with Select-Object -First after it gives you the top ten of anything, such as the ten biggest files on a drive; -Unique lists each value once.

![Cheat sheet for the lesson Sorting: Sort-Object: Sort-Object puts objects in order by any property, smallest or A first unless you add -Descending, and with Select-Object -First after it gives you the top ten of anything, such as the ten biggest files on a drive; -Unique lists each value once.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/827f0aaf278845d480d52b350ab00c97.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: operating-system, powershell, select-object, sort-object
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-sort-object-cheat-sheet
