How to sort the letters in a string alphabetically in Python October 15, 2022 by Tarik You can do: >>> a="ZENOVW" >>> ''.join(sorted(a)) 'ENOVWZ'