"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"]); }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.