I have a portal with entries in it. The addition of new entries was realized with a script: for every new entry, I jump to the last row of the portal. Row number minus 1 is my next position number! So far so good.
Now to my problem with 6 entries for instance:
If I delete the number 3 of the following entries
the new order should look like as following.
but it looks like:
How can I re-calculate the new position numbers?