Is there an Airscript function for reversing the order of a list?
Use case: I’m displaying a list of data using a repeater, and I want the most recent entries to be seen at the top (currently the oldest entry is at the top).
Is there an Airscript function for reversing the order of a list?
Use case: I’m displaying a list of data using a repeater, and I want the most recent entries to be seen at the top (currently the oldest entry is at the top).
You could do something like this (given variable “list”):
FROM
i
IN
RANGE(LENGTH(list) - 1, 0, -1)
SELECT
list[i]