Table sorting changes