mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-29 08:56:27 +02:00
Change icon sorting in grid.
Sort icons in grid by shape identifiers instead of tag priority.
This commit is contained in:
parent
1aace77aef
commit
aad7b25202
4 changed files with 11 additions and 3 deletions
|
@ -362,7 +362,15 @@ class Icon:
|
|||
self.shape_specifications += specifications
|
||||
|
||||
def __eq__(self, other) -> bool:
|
||||
return sorted(self.shape_specifications) == sorted(other.shape_specifications)
|
||||
return sorted(self.shape_specifications) == sorted(
|
||||
other.shape_specifications
|
||||
)
|
||||
|
||||
def __lt__(self, other) -> bool:
|
||||
return (
|
||||
sorted(self.shape_specifications)[0].shape.id_
|
||||
< sorted(other.shape_specifications)[0].shape.id_
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue