Moving items on a list

Hello, does anyone know how to move the first item of a list to a specific index in that list?

For example, my list is currently [A,B,C,D,E]. I want to move A to the second to last index.

Thanks!

In this playlist by Bestbubbledev 2 latest videos are about reordering repeating groups.

Hi Gio, thanks for the quick response. Your answer is making me think I should be more specific.

This list is a field in a database of Users. Users will not be able to see this list or modify it in any way; the list is only used to display the first item of the list (e.g. “A”) to the user. Once the user sees “A” on-screen, A will be moved to a different, specific index in the list. At this point, the user will only be able to see “B” and so on and so forth.

Hopefully this clarifies things!

Do you have a design mockup or can you make a quick Loom video?! I really don’t get what you need. Also you need to define SEEN & how will you trigger this event…

Assuming A is the first item and Z is the last:

  • update the list :minus A (or a custom state set to A)
  • update the list :minus Z (or a custom state set to Z)
  • update the list :plus A (or a custom state set to A)
  • update the list :plus Z (or a custom state set to Z)

Good luck!