diff --git a/lib/ansible/galaxy/api.py b/lib/ansible/galaxy/api.py index 021d56f0254..21a3e05f90b 100644 --- a/lib/ansible/galaxy/api.py +++ b/lib/ansible/galaxy/api.py @@ -337,10 +337,7 @@ class GalaxyAPI: if not isinstance(other_galaxy_api, self.__class__): return NotImplemented - return ( - self._priority > other_galaxy_api._priority or - self.name < self.name - ) + return self._priority > other_galaxy_api._priority @property # type: ignore[misc] # https://github.com/python/mypy/issues/1362 @g_connect(['v1', 'v2', 'v3'])