How to add a new row in a repeating group to any place in this repeating group

Hi! I need your help. How to add a new row in a repeating group to any place in this repeating group. For example, two lines are displayed in a repeating group (photo 1), how do I add a new line between the first and second lines (photo 2)?

Thank you in advance!

1
2

If working with data from your database, on the data type add a field called sort order. On the repeating group sort by sort order. Add a button to click and do workflow ‘create new entry’ and create a new entry of the type of data you are working with. Add the sort order to be the value from where they clicked the button for adding a new entry.

Run a backend workflow to change the sort order of all entries whose sort order is greater than the sort order of the new entry you created.

O, very thanks! But if it doesn’t bother you, we could show the backend proccess in more detail, perhaps with a picture?

Link list is definitely faster when the list is long!