from datetime import datetime data = sorted(data, key = lambda row: datetime.strptime(row[0], "%d-%b-%y"))