|
From: Aaron H. <aa...@me...> - 2001-11-28 19:18:24
|
Is there an easy way to sort a nested list by passing a param to the sort routine? I can sort on any index via rs.sort(lambda a,b:cmp(a[0],b[0])) but I cannot figure out how to make the list index a variable rs.sort(lambda a,b:cmp(a[ i ],b[ i ])) Any ideas? -Aaron |