' Instantiate an account object.
Dim account As New Entity("account")
Dim account_lookup = From a In srvContext.CreateQuery("account")
Where CStr(a("statecode")).Equals("Active")
Select a.Attributes("name")
ddlCounty.DataSource = account_lookup
ddlCounty.DataBind()
This query successfully creates a DropDownList of account names, but it is not ordered. How do I add the OrderBy option?
*This post is locked for comments