I have the following Python array of dictionaries:
myarr = [ { \'name\': \'Richard\', \'rank\': 1 }, { \'name\': \'Reuben\', \'rank\': 4 }, { \'name\': \'Reece\'
A hacky way to do it is:
sorted_master_list = sorted(myarr, key=lambda x: 99999 if x['rank'] == 0 else x['rank'])
This works fairly well if you know your maximum rank.