I have the following Python array of dictionaries:
myarr = [ { \'name\': \'Richard\', \'rank\': 1 }, { \'name\': \'Reuben\', \'rank\': 4 }, { \'name\': \'Reece\'
try sorted_master_list = sorted(myarr, key=itemgetter('rank'), reverse=True)