Powershell Loop Through Array Of Objects Sort In C