def artists_by_name(formatter, albums):
    """Returns the artists sorted by name."""
    artist_tags = set([album["artist_tag"] for album in albums])
    artists = []
    for artist_tag in sorted(artist_tags):
        specific_albums = [x for x in albums if x["artist_tag"] == artist_tag]
        artists.append(
            {
                "artist_tag": artist_tag,
                "artist": specific_albums[0]["artist"],
            }
        )
    return formatter.parse_list(artists, formatter.format_artist)