[Problem:] I am having trouble sorting a column that includes both letters and digits.
[Input] My column looks like this: Reference
Test1
Test2
Test11
[Code]
import csv
import operator
sample = open (r'test.csv','r')
csv1 = csv.reader(sample, delimiter = ',')
sort = sorted (csv1,key=operator.itemgetter(154))
[Current output]
Test1
Test11
Test2
[Desired output]
Test1
Test2
Test11
Therefore can u please share a hint on this.
Take care