Saketh wrote: > > > Why not use a dictionary instead of two lists? Then you can sort the > dictionary by value -- e.g. thanks for the suggestion. I am not sure this is quite suitable for my application (the example I provided was extremely simplified), but this is a useful technique to know and has been stored away for future use. Thanks again, Esmail