def linklist(title, href_fmt, args):
    """Generate unordered list of links"""
    href_fmt = '<li><a href="{}">{}</a>'.format(href_fmt, '{}')
    entries = [href_fmt.format(*(e + [e[-1]])) for e in sorted(args)]
    fmt = '<h2>{} ({} found)</h2><ul>{}</ul>'
    return fmt.format(title, len(entries), ''.join(entries))