sort csv on date python 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"))