PowerTip: Use PowerShell to Sort Array

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to sort an array.

Hey, Scripting Guy! Question How can I use Windows PowerShell to sort an array?

Hey, Scripting Guy! Answer Use the static Sort method from the [array] class, for example:

$a = 1,2,4,5,3,6

  [array]::sort($a)

0 comments

Comments are closed. Login to edit/delete your existing comments