Re: Problem with the sort() function

2005-02-23 Thread clementine
Thanks everyone!!:-) Nicks solution coupled with John's modifications worked great for 2.2!! Yipeee...!!:):) -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with the sort() function

2005-02-22 Thread clementine
Thanx Nick...I forgot to mention im using python 2.2 and along with a host of other things it doesnt seem to have the enumarate built in function :(:(:(...is it possible to replace it by something else? I dont think simulating it will be feasible -- http://mail.python.org/mailman/listinfo/pyt

Problem with the sort() function

2005-02-21 Thread clementine
Hi, I have an array of arrays in the form of list = [[3,'fork',0.3,1],[2,'fork,0.1,2],[3,'exec',0.2,2]] The in-built sort(),list.sort() sorts on the first element, if the first elts are equal then it sorts on the second elt and so on...But i really dont want to search on the second elt if the fi