Repeater: Switch row order


#1

Team!

Is there an easy way to switch two rows within a repeater, such that row 5 becomes row 8 and vice versa?

The row order is driven by the order in which the data is added to the repeater. I want to be able to switch two rows based on a drag and drop event on two components external to the repeater.

After the drag and drop, I know which two rows I need to switch, I just haven’t worked out how to do this efficiently!

Thanks,

Caroline


#2

A few years back I worked out a method to do this. Not sure it meets your “do this efficiently” request :stuck_out_tongue_closed_eyes: but it works. It was RP8 timeframe, but repeaters have not really changed much since then.


#3

Exactly what I was looking for… thanks!