I am trying to sort the data based on the year object here in this case. I would like to sort the data ascending based on the year in this case.
My list of list looks like this -
new_trades = [["PEAR", "s", 300, 890.08, "2020-10-10"],
["PEAR", "b", 300, 890.08, "2021-10-10"],
["PEAR", "b", 300, 890.08, "2001-10-10"],
["IBN", "s", 400, 890.08, "2020-10-10"],
["ABC", "s", 400, 890.08, "2010-10-10"],
["XYZ", "b", 400, 890.08, "2010-10-10"]]