Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Use PowerShell to Sort Array

$
0
0

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)


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>