def sort(string): n = len(string) for i in range(n): count = 0 for j in range(0, n-i-1): if string[j] > string[j+1] : string[j], string[j+1] = string[j+1], string[j]