This might help ...
array = ['test123','hallo','ABC','zipcode','Myname','computer','test456']
# sort case insensitive
sorted_array = sorted(array, key=str.lower)
print(array)
print(sorted_array)
''' result -->
['test123', 'hallo', 'ABC', 'zipcode', 'Myname', 'computer', 'test456']
['ABC', 'computer', 'hallo', 'Myname', 'test123', 'test456', 'zipcode']
'''
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417