Suppose i have this: ------
>>> z1 = >>> [[34,44,'1011'],[40,60,'1011'],[50,50,'1013'],[40,20,'1011'],[10,30,'1013']] >>> z1 [[34, 44, '1011'], [40, 60, '1011'], [50, 50, '1013'], [40, 20, '1011'], [10, 30, '1013']] >>> for i in z1: print i [34, 44, '1011'] [40, 60, '1011'] [50, 50, '1013'] [40, 20, '1011'] [10, 30, '1013'] >>> ---- how do i sort the nested list z1 so as to obtain: bla = [[34,44,'1011'],[40,20,'1011'],[40,60,'1011'],[10,30,'1013'],[50,50,'1013']] _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers