dict = {"Python":750,"Java":950,"Ruby":700,"C++":200}
sort_values = sorted(dict.items(), key=lambda y: y[1], reverse=True)
for i in sort_values:
print(i[0], i[1])
1. new_list = sorted(old_list, key=lambda k: k['key'], reverse=True)
/*use reverse=False for ascending order*/