How to do sorting in popup JS 4.14

793
2
01-31-2020 02:31 AM
by Anonymous User
Not applicable

Hi, 

We are using PopupTemplate - use functions to set content | ArcGIS API for JavaScript 4.14  as our sample code.

When we have multi-records in popup, the order is mixed up, how to sort it by nominated field? (for example, order by Name), thanks.

Regards,

Bing

Tags (1)
2 Replies
Alber_Verster
Esri Contributor

Hi Bing.

I believe your problem might be solved with Arcade in the pop up. Hopefully this helps.

Alternatively you could try to order the data? Might bring up the data as it is called.

Lastly and most complex option would be to completely customise your pop-up.

Hope this helps.

LaurenBoyd
Esri Contributor

Good news - the Popup and Features widgets will respect the drawing order for individual layers in the ArcGIS Maps SDK for JavaScript version 4.29. The returned features will adhere to the default drawing order of the data or a specific order if orderBy is specified on the layer.

Lauren
0 Kudos