Order the QC directory names according to their date.

    :param dirnames: the list of directories to merge data from.

    :type dirnames: list

    :returns: the sorted list of directories
    :rtype: list

def order_qc_dir(dirnames):
    """Order the QC directory names according to their date.

    :param dirnames: the list of directories to merge data from.

    :type dirnames: list

    :returns: the sorted list of directories
    :rtype: list

    """
    return sorted(
        dirnames, key=lambda dn: time.strptime(
            os.path.basename(dn.rstrip("/"))[14:],
            "%Y-%m-%d_%H.%M.%S",
        )
    )