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