Tables: Fixed sorting and setting overrides to be compatible with DataTables 1.10 (fixes #5388 and #5389)