def sort_lists(*lists):
    """Sort a list of lists based on the first list"""
    out = [[] for _ in range(len(lists))]
    for vals in sorted(zip(*lists)):
        for i, val in enumerate(vals):
            out[i].append(val)
    return tuple(out)