Sorting an array on the nth element in a list

Ron Brennan brennan.ron at gmail.com
Wed Aug 20 15:01:15 EDT 2008


Hello,

I am trying to parse a log file.  I want to sort based on the second element
the list that is in the file.

What is the best way to do this?  The sort is just on the line itself where
I want to re-organize the lines based on the second element of the csv file

Thanks,
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080820/57b4724c/attachment.html>


More information about the Python-list mailing list