Summary: Learn how to sort an array of numbers with Windows PowerShell.
How can I use Windows PowerShell to easily sort an array of numbers?
Pipe the array to the Sort-Object (sort is an alias) cmdlet, for example:
$a = 1,2,7,6,4,3,3,2,9
$a | sort

Summary: Learn how to sort an array of numbers with Windows PowerShell.
How can I use Windows PowerShell to easily sort an array of numbers?
Pipe the array to the Sort-Object (sort is an alias) cmdlet, for example:
$a = 1,2,7,6,4,3,3,2,9
$a | sort

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.
0 comments