python sort string by alphabet code example Example: python string sort characters >>> a = 'ZENOVW' >>> ''.join(sorted(a)) 'ENOVWZ'