Added declarations for table sort