Swap the row holding the selection with the one above or below.
Rows are swapped whole, so a row carries its cells, their spans and their
content with it. The alternative, moving content between fixed rows, would
lose per-cell attributes like alignment and header status. Rows a merged
cell spans move together, past the next row or rows tied the same way, so
a move never cuts a merged cell apart.
Declines at the ends of the table, and when the selection is outside one.
Swap the row holding the selection with the one above or below.
Rows are swapped whole, so a row carries its cells, their spans and their content with it. The alternative, moving content between fixed rows, would lose per-cell attributes like alignment and header status. Rows a merged cell spans move together, past the next row or rows tied the same way, so a move never cuts a merged cell apart.
Declines at the ends of the table, and when the selection is outside one.