Sorting Array Using For Loop In Powershell