Sort on the basis of particular column

li=[(1, 0.23),(78, 0.39),(5, 0.27)]
print sorted(li,key=lambda l:l[1], reverse=True)

Comments