```python
brains = list(catalog(UID=related))
brains.sort(key=lambda brain: related.index(brain.UID))
```