I have been trying to sort this array that I populate in run-time but it doesn't seem to sort.
What am I doing wrong here? Help please!!
foreach($k in $c)
{
if($k.SideIndicator -eq "=>")
{
$tempCnt++
$array+=$k.InputObject
}
}
foreach($temp in $array | sort-object)
{
$building+="<tr><td>" + $temp + "</td></tr>"
}
The out put I get is as follows:
nascopy |
\nascoolx |
\nasLine Guide |
\nasDishTV |
\nasdishmarker |