AnsweredAssumed Answered

Parks Finder - Sort Activity Search Results Alphabetically

Question asked by Christine_Carrelli on Nov 10, 2014
Latest reply on Dec 12, 2014 by Christine_Carrelli

I have Parks Finder all set up and ready to go, but I have noticed that when you do a "Search by Activity" the search results are displayed in random order in the Info Pods "Search Results".  I would like the results to be sorted alphabetically.  I notice that when you do a search by name the results are shown alphabetically, and I found the following bit of code in the locator.js file that I believe accomplishes this:



                featureSet.sort(function (a, b) {

                    var nameA =,

                        nameB =;

                    if (nameA < nameB) //sort string ascending


                        return -1

                    } else {

                        return 1




I added this same bit of code into the LocateFeaturebyActivity() function and it does not cause any errors, but it also does not solve the problem.  The parks are still listed in random order (basically the same order they show up by default inside of ArcMap).


Does anyone have any suggestions on how I could fix this issue?


Thanks a bunch.