def SortLists(sortbylist,otherlists,reverse=False):
    """This function sorts lists similar to each list being a column
    of data in a spreadsheet program and choosing one column to sort
    by.

    The sortbylist is the column or list that you wish to sort by and
    otherlists is a list of the other lists or columns to sort.

    Reverse is passed to the sort method of sortbylist."""

    newlist=sortbylist[:]
    newlist.sort(reverse=reverse)
    bigoutlist=[]
    for list in otherlists:
        curlist=[]
        for curitem in newlist:
            ind=sortbylist.index(curitem)
            curlist.append(list[ind])
        bigoutlist.append(curlist)
    return (newlist,)+tuple(bigoutlist)