Hi Community,
This is probably a simple question but someone like myself who's knew into arcade coding and coding in general, I still struggle haha. I have done some research and thought this would work but I am still getting an error. Basically the code below pulls results from the layer 'National Reserve System' that overlays another layer called IBRA, and produces a percentage value of how much is overlaid/impacted. The code works but now I want to get the results to be listed in alphabetical order. I put in a code that I thought might do it (var sortlist = OrderBy(resultlist, 'Name ASC') but I get this result - Test execution error: Execution error - Invalid parameter. Verify test data.
I know it's probably an easy fix but any ideas of how to fix this would be greatly appreciated 🙂
Thanks,
Matt.
Hi mtuffy,
As far as I Know, there is not sort function in Arcade, and if you want to do sort of an ArrayList you should write a custom script.
Here is a sample of sorting in Arcade,
Hi Amir,
Thanks for your response! I will have a play with the code today and see if I can get something to work 🙂
Thanks again for helping,
Matt.