I have a list as follows:
original_list = [u'0.1.876',u'0.1.1102']
I need to sort this in reverse order, so I did the following:
sorted_list = sorted(original_list, reverse=True)
The output is [u'0.1.876',u'0.1.1102']
, but i need the sorting to consider the last column of digits. So expected output is [u'0.1.1102',u'0.1.876']
. Any suggestions on how i could get this done ?