def merge(tracks):
    """Return one or more tracks joined and sorted into a single track."""
    singletrack = []
    for track in tracks:
        singletrack.extend(track)
    singletrack.sort(key=lambda e: e[4])
    return singletrack
