Powershell Sort Array By Recursion Definition Programming