WIP table sorting

This is more complicated than it initially seemed. Sorting the table when editing is off works, but only sorts the DOM version of the table, neglecting to update the interpreted or raw versions, which throws off the rowFocusIndex.