mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 02:11:58 +02:00
Support icon sorting in grid.
This commit is contained in:
parent
66c6e8fab7
commit
51c0f55e61
2 changed files with 4 additions and 0 deletions
|
@ -147,3 +147,7 @@ class IconCollection:
|
|||
|
||||
def __len__(self) -> int:
|
||||
return len(self.icons)
|
||||
|
||||
def sort(self) -> None:
|
||||
"""Sort icon list."""
|
||||
self.icons = sorted(self.icons)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue