Write a program to sort ‘GlobalSQA’ lexiographically
return sorted(sorted(s), key=str.upper)
The lexicographic or lexicographical order (also known as lexical order, dictionary order, alphabetical order or lexicographical product) is a generalization of the way the alphabetical order of words is based on the alphabetical order of their component letters. The sorted function sorts it for you.
['A', 'a', 'b', 'G', 'l', 'l', 'o', 'Q', 'S']