Hey everyone, starting from Knowledge Base - Row Reordering, I copied the handler function to my project and I got it to work almost perfectly.
I have however an extra need: when I reorder the row I'd like the Order field to change for all the previous fields if needed. Starting from a example like this:

Example: I move 1 to 5 and the other rows see their order field changed to reflect the previous status:
1 --> 5
2 --> 1
4 --> 2
5 --> 4
Link to a Stackblitz that you can use
I have however an extra need: when I reorder the row I'd like the Order field to change for all the previous fields if needed. Starting from a example like this:

Example: I move 1 to 5 and the other rows see their order field changed to reflect the previous status:
1 --> 5
2 --> 1
4 --> 2
5 --> 4
Link to a Stackblitz that you can use