def get_matching_files(root, regex):
    """
    Generates a sorted list of files that match the regex pattern at
    root's destination

    :param Path root: absolute path of directory to search
    :param Pattern regex: pattern of filename
    :return: sorted list of matching filenames
    """
    return sorted([file.name for file in root.iterdir() if regex.match(file.name)])