Changed table sorting