🍒 table: Ensure we update sortName when changing sort order
Otherwise the code that uses this to store the sorted column breaks.
(cherry picked from commit b70645f3)
Otherwise the code that uses this to store the sorted column breaks.
(cherry picked from commit b70645f3)