Stephen Boulet schrieb: > Is there any list method available to sort lists of lists by columns? > I'm thinking of a spreadsheet-type function where you might sort rows by > the column x, y, and then z. Does this help you? def mycmp(a, b): return cmp(a[4], b[4]) mylist.sort(mycmp) thomas