table sorting improvements and default ranking orders