fixing bug (#300)

Co-authored-by: Monthly Tag bot <mtbot@noreply.github.com>
This commit is contained in:
Dario Coscia
2024-05-20 17:45:44 +02:00
committed by GitHub
parent 4a6510bffd
commit a72ce67873
5 changed files with 39 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ class CartesianDomain(Location):
:return: Spatial variables defined in ``__init__()``
:rtype: list[str]
"""
return list(self.fixed_.keys()) + list(self.range_.keys())
return sorted(list(self.fixed_.keys()) + list(self.range_.keys()))
def update(self, new_domain):
"""Adding new dimensions on the ``CartesianDomain``