I have a table which contains a bunch of rows and a sort_order. I was wondering how I can do this so when I delete a row, say I delete the highlighted row with a sort_order of 7. Then instead of 7 just being removed, I would need to change #8 to #7 .. #9 to #8 .. #10 to #9 .. and #11 to #10.

Is something like this possible?
If you really need to change these values (
sort_orderwill still work with gaps), you canand then reduce the remaining entries by
1: