def get_directory_contents(directory):
    """
    return a sorted list of the contents of a directory
    """
    contents = []
    for child in directory.iterdir():
        contents.append(child)
    return sorted(contents)
