"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"]); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.