Hi,
We have a datetime field array and want to sort it in ascending order. Please let me know how to do it. If you have any code snippet please share which will be helpful.
Thanks in advance.
Discussion posts and replies are publicly visible
I had an array of time values that I needed to appear in ascending order.
This worked for me:
local!timingChoices: sort(index(local!sourseList, "timing_val", null))
sort is a hidden function, it does the trick, but shouldn't be used for serious stuff.