unsortedList = list(["XYZ","ABC"]) sortedList = unsortedList.sort() print sortedList Why this return None? How do I get return as ["ABC", "XYZ"]?