mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
sorter is not lamda function
This commit is contained in:
parent
b3aba19325
commit
85a9c0559c
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ class AssetModel(models.TreeModel):
|
|||
self.beginResetModel()
|
||||
|
||||
# Add the items sorted by label
|
||||
sorter = lambda x: x["label"]
|
||||
def sorter(x):
|
||||
return x["label"]
|
||||
|
||||
for item in sorted(items, key=sorter):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue