sorted() erraticly fails to sort string numbers
jjposner at snet.net
Tue Apr 28 16:18:43 CEST 2009
> I am at the same time impressed with the concise answer and
> disheartened by my inability to see this myself.
> My heartfelt thanks!
Don't be disheartened! Many people -- myself included, absolutely! --
occasionally let a blind spot show in their messages to this list. BTW:
container[:] = sorted(container, key=getkey)
... is equivalent to:
(unless I'm showing *my* blind spot here)
More information about the Python-list