"order by" in the Where clause is not something the REST API currently support. You need to use System.Linq to perform this once QueryTask.ExecuteCompleted. e.FeatureSet.Features.OrderBy(g => (string)g.Attributes["fieldName"]); The data type must much your field type. fieldName is your layer field which you want to order by.
e.FeatureSet.Features.OrderBy(g => (string)g.Attributes["fieldName"]);
var sortedList = featureSet.Features.OrderBy(f => (string) f.Attributes["STATE_NAME"]).ToList(); foreach(var graphic in sortedList) { System.Diagnostics.Debug.WriteLine(graphic.Attributes["STATE_NAME"]); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.