From 701b6d4044aa7e4ea8c0aed3e0a3c468e9ad5e30 Mon Sep 17 00:00:00 2001 From: mmatera Date: Mon, 25 Jul 2022 14:55:20 -0300 Subject: [PATCH] get_sort_key as tuple --- pymathics/graph/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymathics/graph/__main__.py b/pymathics/graph/__main__.py index 96a5d64..880d85e 100644 --- a/pymathics/graph/__main__.py +++ b/pymathics/graph/__main__.py @@ -461,7 +461,7 @@ def get_sort_key(self, pattern_sort=False): if pattern_sort: return super(Graph, self).get_sort_key(True) else: - return hash(self) + return (1, 3, Symbol("Pymathics`Graph"), tuple(), 2, len(self.pixels), hash(self)) @property def value(self):