More table sorting functionality