i don't mind, but this could also be written as 
```
def sort_key(stack):
    return stack.logical_resource_id
```