Testing table sorting