Finish table sorting