ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query();
// Specify fields to return from initial query query.OutFields.AddRange(new string[] { "NAME" }); query.OutFields.Sort(); // This query will just populate the drop-down, so no need to return geometry query.ReturnGeometry = false;
// Return all features query.Where = "1=1"; queryTask.ExecuteAsync(query, "initial"); }
I think this is only sorting the first field which is object ID. Any suggestions would be appreciated.