li = [['user1', 100], ['user2', 234], ['user3', 131]]
import operator
sorted(li, key=operator.itemgetter(1))
sorted(li, key=operator.itemgetter(1), reverse=True)
python: sort a list of lists by an item in the sublist