Will SORT Node sort multiple arrays

#1

I am curious if the SORT Node would be used for this situation.

If my flow contains a payloads like -
//newTagRead = {"payload":{"epc":flow.rfid[i].epc,"time":currentTime, "ip":flow.rfid[i].ip, "strength":flow.rfid[i].nbRSSIdb}}; which may have 1 - 4 arrays, would I be able to set up a SORT to only pass the array with the highest value of the nbRSSIdb which will be an integer?

0 Likes

#2

Sounds like a perfect use for a JSONata expression...

If you can post a sample of the JSON dataset, I'll be glad to take a whack at it.

0 Likes