• Thanks MM. It's working in some ways but not in others.

    If I have things in priority 1, 2, 3, 4 and I move Priority 3 to 2, Priority 4 changes to 5. It should remain at 4.

    I also tested Example 4, moving a from one line to another. The procedure does not move the line nor change the priorities.