I want to sort two sequences with different data types but both with an equal number of elements eg.
f = [0.21, 0.68, 0.44, ..., 0.23] i = [6, 18, 3, ..., 45] The obvious solution is to use zip ie. pairs = zip(f,i) followed by pairs.sort(). This is fine but my sequences contain 10,000+ elements and the sort is performed thousands of times. Is there a faster solution? Dinesh
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor