sorted(map(lambda x: str(x), [9, 5, 100, 10, 30, 3, 265, 200, 20, 2]), key=
    lambda x: x.strip('0') + x.rjust(len(x) + (len(x) - len(x.strip('0'))),
    '0'), reverse=True)
How to sort only few values inside a list in Python