Hello,

I have two lists, one with strings (filenames, actually), and one with a 
real-number
rank, like:

A=['hello','there','this','that']
B=[3,4,2,5]

I'd like to sort list A using the values from B, so the result would be in this 
example,

A=['this','hello','there','that']

The sort method on lists does in-place sorting.  Is there a way to do what I 
want here?


                thanks,

                        Brian Blais

-- 
-----------------

             [EMAIL PROTECTED]
             http://web.bryant.edu/~bblais

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to