How to customize "for each" device list order?


#1

1) Give a description of the problem
Sorry for a probably very trivial question.

I cannot seem to find a way to alter the order of devices in the For Each statement.
It will always order them alphapetic.

Currently I stitch the order together by addining devices one by one in the define section in a device list.
However I see that you in the Dashboard Tiles section has defined a device list in a custom order.

How can I do this either through ordering them or freetext editing?


#2

I am just getting started with ST and WebCoRE and had the same problem. I ended up setting up a variable via an expression with the items in the desired order…

device customOrder = {[device2], [device4], [device1], [device3]}


#3

Perfect.
Thanx