Checkpoint progress on handling sorted selections.
Fix sorted selection errors.
Maintain the current selection while resorting the table.