fix: ensure consistent ordering

This commit is contained in:
2023-01-11 04:21:45 +01:00
parent 7bd0d83db1
commit ea276a8e5b
2 changed files with 5 additions and 1 deletions

4
vm.py
View File

@@ -47,6 +47,10 @@ class VM:
def __eq__(self, other):
return self.hostname == other.hostname
def __gt__(self, other):
if self.hostname != other.hostname:
return self.hostname > other.hostname
return len(str(self.__dict__)) > len(str(other.__dict__))
def dumpStreamComponents(self):