how to sort a list of dictionaries in descending order in python code example
Example: how to sort a list of dictionary by value in descending order?
1. new_list = sorted(old_list, key=lambda k: k['key'], reverse=True)
/*use reverse=False for ascending order*/