I'm trying to sort my CSV file so that the teams with the most gold, silver and bronze medals are at the top of the list and those with the least are at the bottom.

```
def rank_team(file_name):
import csv

file = open('medal.csv')
for line in file:
    print(line)

pass

rank_team('medal.csv')

```

This is the code that I have now. Just wondering how I would sort it all.

This is the CSV that I'm using.
[CSV used to sort](https://i.stack.imgur.com/eekPt.png)