This is equivalent to (without `.keys()`)
```py
for resource_id in sorted(building.costs):
```