How it works...

This recipe is another demonstration of passing objects through the pipeline. In the help documentation for Sort-Object, we see a parameter called InputObject. This parameter is a generic term used in PowerShell for a parameter whose input comes through the pipeline.

Sort-Object accepts input from the pipeline, and sorts the content based on the property specified. If a property is not specified, the default property for the object output from the preceding command is used for sorting. If there are multiple properties are input, the sorting happens based on the order in which the properties are specified.

Sorting can happen in the ascending order (default), or the descending order.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.242.165