SQLResult.compareTo should be a private function