def sort(records: Sequence[Record]) -> List[Record]:
    "Sort records into a canonical order, suitable for comparison."
    return sorted(records, key=_record_key)
def sort ( records : Sequence [ Record ] ) -> List [ Record ] : return sorted ( records , key = _record_key )
Sort records into a canonical order, suitable for comparison.