If you want to use sort(), you need to convert the tuple to a list; then sort the list. Once you have sorted the list, you can convert the sorted list to a tuple.
You can also use the sorted() function to sort a tuple without converting it to a list. The sorted() function will convert the tuple to a list.
Example:
>>> t = ('cc', 'aa', 'dd', 'bb')
>>> t1=list(t)
>>> t1.sort()
>>> tuple(t1)
('aa', 'bb', 'cc', 'dd')
>>> t
('cc', 'aa', 'dd', 'bb')
>>> sorted(t)
['aa', 'bb', 'cc', 'dd']
>>> tuple(sorted(t))
('aa', 'bb', 'cc', 'dd')