sorter is not lamda function

This commit is contained in:
Jakub Trllo 2024-03-27 12:37:17 +01:00
parent b3aba19325
commit 85a9c0559c

View file

@ -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):