Sorting a list

RC raymond.chui at nospam.noaa.gov
Tue Oct 28 14:45:19 CET 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