
# https://www.globalsino.com/ICs/page4853.html
# Sort a txt file

import csv
import operator

MyTXT = open(r'C:\GlobalSino\images\TestImages\Excel\Sorted_CityDate_copy.txt', 'r')
csv_file = csv.reader(MyTXT, delimiter = ',')

# Sort column with index "1".
MySort = sorted(csv_file, key=operator.itemgetter(1), reverse = True)

for MyEachline in MySort:
    print(MyEachline)
    



