Swaps two rows in an inventory
the first row
the row to swap with
Swaps two rows based on their index
of the first row
of the row to swap with