table viewers sorting fix