I have a table that is sortable via clicking on the column headers. The table rows are also editable (by clicking directly into a cell).

A really frustrating side effect is that when you modify a cell (for example checking/unchecking a boolean value), the whole associated row suddenly jumps and disappears, because it is being dynamically sorted.

What is the normal way of doing things in this situation? Should the sort be deactivated whenever modifying a row?