how to convert dictionary values to int in python?,"results = sorted(ranks, key=lambda x: int(x['rank'].replace(',', '')))"