I have already inserted an order number from 0 to 11 with for loop.
Index | Value
0 | 11
1 | 10
2 | 9
3 | 8
4 | 7
5 | 6
6 | 5
7 | 4
8 | 3
9 | 2
10 | 1
11 | 0
Then i want to delete let say index 3, can I get automatically an order number value like previous? What I want is become still with:
0 | 10
1 | 9
2 | 8
3 | 8 (deleted. But value still the same order number)
4 | 7
5 | 6
6 | 5
7 | 4
8 | 3
9 | 2
10 | 1
11 | 0