import hashlib


def compute_checksum(checksums):
    """
    Checksum created by sorting alphabetically then concatenating first layer of bundles/objects.

    Args:
        checksums (list): list of checksums from the first layer of bundles and objects

    Returns:
        md5 checksum
    """
    checksums.sort()
    checksum = "".join(checksums)
    return {
        "checksum": hashlib.md5(checksum.encode("utf-8")).hexdigest(),
        "type": "md5",
    }