Sample Input
20, 71146620 100, 26867616 10, 02513583 10, 52811698 100, 23859051
I read it in from a file as a command line
import sys with open(sys.argv[1]) as f: lin = sorted([[int(j) for j in i.split(",")] for i in f]) print lin