```python
from typing import Dict,List:

    def list_of(record: Dict[str,        if key not in record:
            raise ValueError(f"Record missing required field '{ '{key}")
        return record[key]

    def list_pairs(records: List[Dict[str]):
        return sorted(records,_by=lambda x: (list_of(x), x))
```