Q: sort's key and cmp parameters

Paul Rubin http
Wed Oct 7 02:20:13 EDT 2009


Bearophile <bearophileHUGS at lycos.com> writes:
> sorting, and something that's surely not bug-prone. In such situation
> having a 'key' argument is *better*. Such sort can be stable. 

Nothing stops comparison sorting from being stable.  Since the rest of
your post seems premised on the opposite, I hope that clears things up
for you.



More information about the Python-list mailing list