22864 Fixes to the dynamic table sorting functionality.