Skip to content

Commit

Permalink
get_sort_key as tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Jul 25, 2022
1 parent ee78b21 commit 701b6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymathics/graph/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 701b6d4

Please sign in to comment.