Might be a bit cleaner to use `operator.itemgetter` here. Maybe I just dislike lambdas? Dunno. It'd be:

```python
initial.sort(key=itemgetter(keyfield))
```
Up to you really. Not something I'd r- for.