make sorted lambda variable more descriptive
This commit is contained in:
parent
35a5ab061b
commit
a44a2162b0
@ -48,4 +48,4 @@ class Bundle(BaseModel):
|
||||
return total
|
||||
|
||||
def ordered_items(self) -> List[Item]:
|
||||
return sorted(self.items, key=lambda x: x.position)
|
||||
return sorted(self.items, key=lambda item: item.position)
|
||||
|
Loading…
x
Reference in New Issue
Block a user