An example .csv file would be (headings: "Name, Provider, Months remaining")
John,O2,12
Adam,EE,11
Arnold,O2,14
Sarah,Voxi,9
Mitch,EE,4
Kirstie,GiffGaff,10
Elise,Voxi,3
Eleanor,GiffGaff,7
How would you find the total remaining months for each provider; then list the provider's with total months in ascending order? Using ideally a bubble sort?
Edit: This is without any libraries, no sort(), pandas, lambdas etc.