Sorting a list

RC raymond.chui at nospam.noaa.gov
Tue Oct 28 09:45:19 EDT 2008


unsortedList = list(["XYZ","ABC"])

sortedList = unsortedList.sort()
print sortedList


Why this return None?
How do I get return as ["ABC", "XYZ"]?



More information about the Python-list mailing list