5 lines
162 B
Python
5 lines
162 B
Python
|
def lexicographi_sort(s):
|
||
|
return sorted(sorted(s), key=str.upper)
|
||
|
|
||
|
print(lexicographi_sort('w3resource'))
|
||
|
print(lexicographi_sort('quickbrown'))
|