how to sort python dates in a csv file code example
Example: how to sort by date in .csv
from datetime import datetime
data = sorted(data, key = lambda row: datetime.strptime(row[0], "%d-%b-%y"))
from datetime import datetime
data = sorted(data, key = lambda row: datetime.strptime(row[0], "%d-%b-%y"))