Changing the order of items in an array without database interaction

I have an array that is displayed using a repeat and would like to change the order of the items.

I’ve added a button [+] and to each array item. Pressing these should either increase or decrease the position of the item in the array (hence swap with preceding or following item).

I am aware of the various dragging suggestions elsewhere on the forum, but looking for something very basic without interaction with a database, is that possible?

Community Page
Last updated: