[Tutor] simple report writing?
ronin_cpim at hotmail.com
Mon Nov 7 20:34:59 CET 2005
I neglected to mention that the list x_list was created by x_list =  and
then a series of x_list.append(y), where y are class instances with a
variety of variables, one of which I want to use as a sort key.
>I have a list (x_list) of class data. How do I sort that list by a selected
>variable common to all members >of the list?
>x_list.sort(key=x_list.v_name) # doesn't work becuase x_list can't see the
Express yourself instantly with MSN Messenger! Download today - it's FREE!
More information about the Tutor