problem with sorting

raj rajeeshrnair at gmail.com
Fri Mar 28 02:57:22 EDT 2008


To ankit:

Well, sort() doesn't return the sorted list. It returns None. Why not
this straightforward way?
dvals = dict.values()
dvals.sort()
print dvals



More information about the Python-list mailing list