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