#after you assign info result to sortedlist sortedlist = sorted(reader, key=lambda row: row[3], reverse=True)