Hi,
Please help as I am unable to sort the column output for "LUN ID"
Get-NSVolume | Select @{N="Vol_Name";E={$_.name}},
@{N="Size(GB)";E={[math]::Round($_.size/1024,2)}},
@{N="EUI";E={$_.serial_number}},
@{N="Status";E={$_.vol_state}},
@{N="IG_Name";E={((Get-NSAccessControlRecord -vol_name $_.name).Initiator_group_name) -Join ('|').Replace('|',"`r`n")}},
@{N="LUN_ID";E={((Get-NSAccessControlRecord -vol_name $_.name).lun) -Join ('|').Replace('|',"`r`n")}} | sort "LUN_ID" | ConvertTo-Html -Head $Header -PreContent "<p><h2>Volume - Initiator Groups Info</h2></p>" -PostContent $post | Set-AlternatingRows -CSSEvenClass even -CSSOddClass odd | ForEach-Object -Process { $_ -replace "`n", "<br>" } >> $reportlocation