Solved! Go to Solution.
function onResult(featureSet:FeatureSet, token:Object = null):void { try { // sort feature set with sortByAttribute compare function added below featureSet.features.sort(sortByAttribute); queryResultAC = createQueryResults(featureSet); addSharedData(widgetTitle, queryResultAC); clearMessage();
I am having trouble modifying the code, where do I put the featureSet. stuff? Can you show a section of the code because I am getting a 1069 error.
Thanks,
I made the code changes, now I get a error 1009. If I comment out the sort line I get 691 records but they are not sorted of course.