Changing order on flex repeater

I have a flex repeater showing various user configurable analog displays, the only drawback is that the order of the instances is in order of which it was entered.
The source of the parameters is a Json column in my database, is there a way to reorder the instances in a flex repeater? Preferably in a intuitive drag and drop manner?

They are determined by the array instances property, if you put a script transform on your binding you can sort the list in whatever way you’re looking for.

For instance if you want to sort the list by a parameter named “Order” than for a json list you would do:
return sorted(value, key = lambda x: x[‘Order’])
And a dataset you would do:
return system.dataset.sort(value, value.getColumnIndex(‘Order’))

2 Likes