I'm updating choices in a list field and want them to be stored alphabetically, however when I try to sort the choices I get the following error:
$web = Get-SPWeb "mysite" $list = $web.GetList("/list/url/AllItems.aspx") $field = $list.Fields["File Under"] $field.choices.add("NewItem") $field.choices = $field.choices | sort "Choices" is a ReadOnly property. At line: 1 char:8 + $field. <<<< choices = $field.choices | sort
Is there a way around this?