uuid wrote:
I am at the same time impressed with the concise answer and disheartened by my inability to see this myself.Don't be disheartened! Many people -- myself included, absolutely! -- occasionally let a blind spot show in their messages to this list. BTW:My heartfelt thanks!
container[:] = sorted(container, key=getkey) ... is equivalent to: container.sort(key=getkey) (unless I'm showing *my* blind spot here) -- http://mail.python.org/mailman/listinfo/python-list