I need to rearrange the value of the row based on the primary key constraint on an event insert, update, and delete.
Using the trigger function I am able to rearrange