if you hav a array with only 1 element and sort this with sort-object it destroy the array.I have a script that list the groups (member of) for AD-User and sort this groups. If the user is only in one group this not work, after the sort-object the array is not longer a array.PS U:\> $GroupTable = @()PS U:\> $GroupTable += "group1"PS U:\> $GroupTable[0]group1PS U:\> $GroupTable -is [Array]TruePS U:\> $GroupTable = $GroupTable | Sort-ObjectPS U:\> $GroupTable[0]gPS U:\> $GroupTable -is [Array]FalseMy workaround for the problem:PS U:\> $GroupTable = @()PS U:\> $GroupTable += "group1"PS U:\> $GroupTable[0]group1PS U:\> $GroupTable -is [Array]TruePS U:\> [array]$GroupTable = $GroupTable | Sort-ObjectPS U:\> $GroupTable[0]group1PS U:\> $GroupTable -is [Array]True
Have you seen this problem before in this product?