being able to use sorted() on our list of batches is nice, idiomatic Python. To make it work, we implement __gt__ on our domain model:726 ↱
Architecture Patterns with Python
Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
Harry Percival, Bob Gregory