Stargaming <[EMAIL PROTECTED]> writes: > It does not turn into something. The `sort()` method just works "in > place", i. e. it will mutate the list it has been called with. It > returns None (because there is no other sensible return value). > > For you, that means: You don't have to distinguish between keyList and > sortedList. Just call ``.sort()`` on keyList and it will just work.
Alternatively, use sortedList = sorted(keyList) -- http://mail.python.org/mailman/listinfo/python-list