Calculating a unique row int (not unique ID)

I was thinking about something similar to build my card-sort Grid View (yes, needs a different name).

Technically, if I give an entity X and Y number single-select fields, I could use those on a Board View as coordinates and then drag cards around as I want. Only problem is that new numbers aren’t being added automatically, but would need to be done manually…