def join_and_sort(*argv):
    """ Takes variable number of traces and joins them to one sorted and keyed list."""
    joined_trace = list()
    for trace in argv:
        joined_trace += trace
    joined_trace.sort(key=lambda tup: tup[0])
    return joined_trace