def stations_by_river(stations, river):
    """Takes a list of stations and returns a list of all the station names
    on a specific river in alphabetic order"""
    station_names = []
    for station in stations:
        if station.river == river:
            station_names.append(station.name)
    station_names = sorted(station_names)
    return station_names