Skip to content

Commit 701b6d4

Browse files
committed
get_sort_key as tuple
1 parent ee78b21 commit 701b6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymathics/graph/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def get_sort_key(self, pattern_sort=False):
461461
if pattern_sort:
462462
return super(Graph, self).get_sort_key(True)
463463
else:
464-
return hash(self)
464+
return (1, 3, Symbol("Pymathics`Graph"), tuple(), 2, len(self.pixels), hash(self))
465465

466466
@property
467467
def value(self):

0 commit comments

Comments
 (0)