Fixes to job table sorting.