I want to order string list strating from
l = ['AAAA.html', 'aaa.html', 'index.html', 'diem', '1zz.html']
I want to have this output
['1zz.html', 'aaa.html', 'diem', 'index.html', 'AAAA.html']
How to implement soluzion in python?
I want to order string list strating from
l = ['AAAA.html', 'aaa.html', 'index.html', 'diem', '1zz.html']
I want to have this output
['1zz.html', 'aaa.html', 'diem', 'index.html', 'AAAA.html']
How to implement soluzion in python?
Copyright © 2021 Jogjafile Inc.
Usual sort in python is:
You want
You just need to use, as sorting key, the case-swapped input value: