['7', 'Google', '100T', 'Chrome', '10', 'Python']
I would like the result to be all numbers at the end, and the rest sorted. The numbers do not need to be sorted.
Chrome Google Python 100T 7 10
This is a little trickier because I sort the dictionary by value.
def sortname(k): return get[k]['NAME'] sortedbyname = sorted(get,key=sortname)
I only added 100T after both responses have already been sent, but the accepted answer still works with a slight change, which I posted in a comment. To clarify, you must map the name corresponding to ^ [^ 0-9].
user479870
source share