removed debug flag for table sorting