<br><br><div><span class="gmail_quote">On 6/20/07, <b class="gmail_sendername">Michael McNeil Forbes</b> <<a href="mailto:mforbes@physics.ubc.ca">mforbes@physics.ubc.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I have a list of tuples that I am using as keys and I would like to<br>sort this along with some other arrays using argsort.  How can I do<br>this?  I would like to do something like:</blockquote><div><br>You might want the keys in an object array, otherwise you end up with strings for all the values. Why are they keys? Do you want to sort on them also? Anyway, if you use take(keys, inds, axis=0) you will get an array with the rows containing the keys rearranged as I think you want.
<br><br>Chuck<br></div><br></div><br>