I'm planning to create an event list, something like this:

that list is editable, I can change any displayed value.
but, once I change, for example, the position of a note, it gets out of place:

how can I automatically reorder the array and put the 5 set values in place?
